# HG changeset patch # User Tom Rodriguez # Date 1422477700 28800 # Node ID a02ffe9e18dd3539abf5de9baaffccc51ea8d646 # Parent ea1351d22e5544c007576a67e32fa256cbee1637 Don't report derived induction variable for IV backedge value diff -r ea1351d22e55 -r a02ffe9e18dd graal/com.oracle.graal.loop/src/com/oracle/graal/loop/InductionVariables.java --- a/graal/com.oracle.graal.loop/src/com/oracle/graal/loop/InductionVariables.java Wed Jan 28 12:39:10 2015 -0800 +++ b/graal/com.oracle.graal.loop/src/com/oracle/graal/loop/InductionVariables.java Wed Jan 28 12:41:40 2015 -0800 @@ -74,6 +74,13 @@ if (loop.isOutsideLoop(op)) { continue; } + if (op.usages().count() == 1 && op.usages().first() == baseIvNode) { + /* + * This is just the base induction variable increment with no other uses so + * don't bother reporting it. + */ + continue; + } InductionVariable iv = null; ValueNode offset = addSub(op, baseIvNode); ValueNode scale;