mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
Bug 869529 - Fix LiveRangeAllocator loopWorkList handling. r=bhackett
This commit is contained in:
parent
15eb2cc275
commit
a138ca6b91
@ -791,9 +791,17 @@ LiveRangeAllocator<VREG>::buildLivenessInfo()
|
||||
break;
|
||||
|
||||
// Grab the next block off the work list, skipping any OSR block.
|
||||
do {
|
||||
while (!loopWorkList.empty()) {
|
||||
loopBlock = loopWorkList.popCopy();
|
||||
} while (loopBlock->lir() == graph.osrBlock());
|
||||
if (loopBlock->lir() != graph.osrBlock())
|
||||
break;
|
||||
}
|
||||
|
||||
// If end is reached without finding a non-OSR block, then no more work items were found.
|
||||
if (loopBlock->lir() == graph.osrBlock()) {
|
||||
JS_ASSERT(loopWorkList.empty());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Clear the done set for other loops
|
||||
|
Loading…
Reference in New Issue
Block a user