# HG changeset patch # User Josef Eisl # Date 1403008934 -7200 # Node ID ef21879c0c8f131c7480f838ec88f5d9e3def62f # Parent ff14306337f2cf8a885189258719b71c6f37a2a8 LSRA spill optimization: rename UseBlockIterator to IntervalBlockIterator. diff -r ff14306337f2 -r ef21879c0c8f graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java --- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java Tue Jun 17 14:41:41 2014 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java Tue Jun 17 14:42:14 2014 +0200 @@ -2009,7 +2009,7 @@ assert firstSpillChild.from() < splitChild.from(); } // iterate all blocks where the interval has use positions - for (AbstractBlock splitBlock : blocksForSplitChild(splitChild)) { + for (AbstractBlock splitBlock : blocksForInterval(splitChild)) { if (dominates(defBlock, splitBlock)) { Debug.log("Split interval %s, block %s", splitChild, splitBlock); if (spillBlock == null) { @@ -2065,14 +2065,14 @@ } /** - * Iterate over all {@link AbstractBlock blocks} of an interval with an use position. + * Iterate over all {@link AbstractBlock blocks} of an interval. */ - private class UseBlockIterator implements Iterator> { + private class IntervalBlockIterator implements Iterator> { Range range; AbstractBlock block; - public UseBlockIterator(Interval interval) { + public IntervalBlockIterator(Interval interval) { range = interval.first(); block = blockForId(range.from); } @@ -2101,10 +2101,10 @@ } } - private Iterable> blocksForSplitChild(Interval interval) { + private Iterable> blocksForInterval(Interval interval) { return new Iterable>() { public Iterator> iterator() { - return new UseBlockIterator(interval); + return new IntervalBlockIterator(interval); } }; }