diff graal/com.oracle.graal.loop/src/com/oracle/graal/loop/InductionVariable.java @ 19190:18c2fd3d7fc7

Cleanup InductionVariable declarations a bit
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Mon, 09 Feb 2015 15:52:17 -0800
parents 627f255ee298
children 93c50cefb9e8
line wrap: on
line diff
--- a/graal/com.oracle.graal.loop/src/com/oracle/graal/loop/InductionVariable.java	Mon Feb 09 17:06:21 2015 +0100
+++ b/graal/com.oracle.graal.loop/src/com/oracle/graal/loop/InductionVariable.java	Mon Feb 09 15:52:17 2015 -0800
@@ -87,7 +87,9 @@
 
     /**
      * Returns the extremum value of the induction variable. The extremum value is the value of the
-     * induction variable in the loop body of the last iteration.
+     * induction variable in the loop body of the last iteration, only taking into account the main
+     * loop limit test. It's possible for the loop to exit before this value if
+     * {@link CountedLoopInfo#isExactTripCount()} returns false for the containing loop.
      */
     public ValueNode extremumNode() {
         return extremumNode(false, valueNode().stamp());