Example #1
0
 public InductionVariable getInductionVariable(ValueNode value) {
   InductionVariable match = null;
   for (LoopEx loop : loops()) {
     InductionVariable iv = loop.getInductionVariables().get(value);
     if (iv != null) {
       if (match != null) {
         return null;
       }
       match = iv;
     }
   }
   return match;
 }