GitLab will be upgraded to the 12.10.14-ce.0 on 28 Sept 2020 at 2.00pm (AEDT) to 2.30pm (AEDT). During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to us at N110 (b) CSIT building.

Commit a35577b7 authored by qinsoon's avatar qinsoon

done reg alloc

parent 7ab20356
......@@ -35,7 +35,7 @@ pub struct GraphColoring<'a> {
/// temporaries, not precolored and not yet processed
initial: Vec<NodeIndex>,
/// whether a temp is spillable
// FIXME: not used
// FIXME: not used at the moment
spillable: LinkedHashMap<MuID, bool>,
/// list of low-degree non-move-related nodes
......@@ -247,7 +247,7 @@ impl <'a> GraphColoring<'a> {
trace!("Making work list from initials...");
while !self.initial.is_empty() {
let node = self.initial.pop().unwrap();
if {
// condition: degree >= K
let degree = self.ig.get_degree_of(node);
......@@ -325,7 +325,6 @@ impl <'a> GraphColoring<'a> {
trace!("Simplifying {}", self.display_node(node));
for m in self.adjacent(node).iter() {
//! This module is for validating register allocation
//! However it is disabled for now due to bugs. It is uncertain
//! how important this is to Zebu. More description and discussion
//! can be found as Issue #19.
use utils::LinkedHashMap;
use ast::ir::*;
use ast::ptr::*;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment