Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/graph/IR.java @ 2801:2af109bec0c0
Make block contains a list of nodes instead a list of instructions.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Fri, 27 May 2011 15:11:34 +0200 |
parents | aeccd2af4e9e |
children | c3f64b66fc78 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/IR.java Fri May 27 14:58:55 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/graph/IR.java Fri May 27 15:11:34 2011 +0200 @@ -24,6 +24,7 @@ import java.util.*; +import com.oracle.graal.graph.*; import com.oracle.max.graal.schedule.*; import com.sun.c1x.*; import com.sun.c1x.debug.*; @@ -62,7 +63,7 @@ this.compilation = compilation; } - public Map<Value, LIRBlock> valueToBlock; + public Map<Node, LIRBlock> valueToBlock; /** * Builds the graph, optimizes it, and computes the linear scan block order. @@ -116,9 +117,9 @@ orderedBlocks = lirBlocks; - valueToBlock = new HashMap<Value, LIRBlock>(); + valueToBlock = new HashMap<Node, LIRBlock>(); for (LIRBlock b : orderedBlocks) { - for (Instruction i : b.getInstructions()) { + for (Node i : b.getInstructions()) { valueToBlock.put(i, b); } }