Skip to content

Commit

Permalink
Do not display debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
perezzini committed Dec 6, 2017
1 parent e9668d9 commit 59b10e5
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions tigerregalloc.sml
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ struct
val _ = print("\nnodeMoves "^u^" = "^(utils.setToString (nodeMoves u) (fn pair =>
utils.pairToString pair utils.id utils.id))^"\n")*)
in
if not(Splayset.member(precolored, v)) (* is this ok? Added; not in original pseudo-code. If we not check this condition, the algorith (may be) would color precolored registers. *)
if not(Splayset.member(precolored, v)) (* is this ok? Not in original pseudo-code. If we do not check this condition, the algorithm may color precolored registers. *)
then
if Splayset.isEmpty(nodeMoves v) andalso degree_v < k (* if v is a precolored node, degree[v] < k would always holds true *)
then
Expand Down Expand Up @@ -686,27 +686,19 @@ struct
andalso Splayset.isEmpty (!spillWorklist)) do
(if not(Splayset.isEmpty (!simplifyWorklist))
then
(simplify();
print("\n**simplify() DONE\n");
printDataStructure "simplifyWorklist")
simplify()
else
if not(Splayset.isEmpty (!worklistMoves))
then
(coalesce();
print("\n**coalesce() DONE\n");
printDataStructure "simplifyWorklist")
coalesce()
else
if not(Splayset.isEmpty (!freezeWorklist))
then
(freeze();
print("\n**freeze() DONE\n");
printDataStructure "simplifyWorklist")
freeze()
else
if not(Splayset.isEmpty (!spillWorklist))
then
(selectSpill();
print("\n*selectSpill() DONE\n");
printDataStructure "simplifyWorklist")
selectSpill()
else
())

Expand Down Expand Up @@ -1014,20 +1006,15 @@ struct

in
livenessAnalysis();
print("\n**liveAnalysis() DONE\n");
build();
print("\n**build() DONE\n");
makeWorklist();
print("\n**makeWorklist() DONE\n");
checkInvariants();
repeat();
assignColors();
print("\n**assignColors() DONE\n");
printDataStructure "color";
if not(Splayset.isEmpty (!spilledNodes))
then
let
val _ = print("\n**rewriteProgram() DONE\n")
(*val _ = print("\n**rewriteProgram() DONE\n")*)
in
(* perform algorithm all over again with new
altered graph *)
Expand Down

0 comments on commit 59b10e5

Please sign in to comment.