Mercurial > hg > graal-compiler
changeset 5668:fa1e6d1cc291
Small cleanups
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Wed, 20 Jun 2012 16:55:08 +0200 |
parents | c5c02cd462db |
children | 21e8f6b5a7d1 |
files | graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/loop/LoopTransformations.java graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/StructuredGraph.java |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/loop/LoopTransformations.java Wed Jun 20 13:52:03 2012 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/loop/LoopTransformations.java Wed Jun 20 16:55:08 2012 +0200 @@ -27,6 +27,10 @@ public abstract class LoopTransformations { + private LoopTransformations() { + // does not need to be instantiated + } + public static void invert(LoopEx loop, FixedNode point) { LoopFragmentInsideBefore head = loop.insideBefore(point); LoopFragmentInsideBefore duplicate = head.duplicate();
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/StructuredGraph.java Wed Jun 20 13:52:03 2012 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/StructuredGraph.java Wed Jun 20 16:55:08 2012 +0200 @@ -173,7 +173,7 @@ } public boolean hasLoops() { - return getNodes(LoopBeginNode.class).iterator().hasNext(); + return getNodes(LoopBeginNode.class).isNotEmpty(); } public void removeFloating(FloatingNode node) {