Mercurial > hg > graal-jvmci-8
changeset 16376:ef21879c0c8f
LSRA spill optimization: rename UseBlockIterator to IntervalBlockIterator.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Tue, 17 Jun 2014 14:42:14 +0200 |
parents | ff14306337f2 |
children | 62dd783630c4 |
files | graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/alloc/LinearScan.java |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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<AbstractBlock<?>> { + private class IntervalBlockIterator implements Iterator<AbstractBlock<?>> { 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<AbstractBlock<?>> blocksForSplitChild(Interval interval) { + private Iterable<AbstractBlock<?>> blocksForInterval(Interval interval) { return new Iterable<AbstractBlock<?>>() { public Iterator<AbstractBlock<?>> iterator() { - return new UseBlockIterator(interval); + return new IntervalBlockIterator(interval); } }; }