Mercurial > hg > graal-compiler
diff graal/com.oracle.graal.alloc/src/com/oracle/graal/alloc/ComputeBlockOrder.java @ 15534:4bd6ad45ee0a
Encapsulate members of Loop.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Mon, 05 May 2014 11:10:19 +0200 |
parents | c55f44b3c5e5 |
children |
line wrap: on
line diff
--- a/graal/com.oracle.graal.alloc/src/com/oracle/graal/alloc/ComputeBlockOrder.java Tue May 06 12:14:48 2014 +0200 +++ b/graal/com.oracle.graal.alloc/src/com/oracle/graal/alloc/ComputeBlockOrder.java Mon May 05 11:10:19 2014 +0200 @@ -166,16 +166,16 @@ } Loop<T> loop = block.getLoop(); - if (block.isLoopEnd() && skipLoopHeader(loop.header)) { + if (block.isLoopEnd() && skipLoopHeader(loop.getHeader())) { // This is the only loop end of a skipped loop header. // Add the header immediately afterwards. - addBlock(loop.header, order); + addBlock(loop.getHeader(), order); // Make sure the loop successors of the loop header are aligned // as they are the target // of the backward jump. - for (T successor : loop.header.getSuccessors()) { + for (T successor : loop.getHeader().getSuccessors()) { if (successor.getLoopDepth() == block.getLoopDepth()) { successor.setAlign(true); }