WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit a35577b7 authored by qinsoon's avatar qinsoon
Browse files

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