changeset 19633:c96ebc780911

Fix for counted loop changes.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sat, 28 Feb 2015 01:01:52 +0100
parents f727ca2940ba
children cd097635c865
files graal/com.oracle.graal.loop/src/com/oracle/graal/loop/LoopEx.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.loop/src/com/oracle/graal/loop/LoopEx.java	Fri Feb 27 22:49:50 2015 +0100
+++ b/graal/com.oracle.graal.loop/src/com/oracle/graal/loop/LoopEx.java	Sat Feb 28 01:01:52 2015 +0100
@@ -198,7 +198,7 @@
                     limit = lessThan.getY();
                 }
             }
-            if (iv != null && iv.constantStride() != 1 && !(ifTest instanceof IntegerLessThanNode)) {
+            if (iv != null && iv.strideNode() != null && iv.constantStride() != 1 && !(ifTest instanceof IntegerLessThanNode)) {
                 return false;
             }
             if (condition == null) {