Bug 1245152 - Ensure enough ballast space in RangeAnalysis::analyzeLoop. r=h4writer

This commit is contained in:
Nicolas B. Pierron 2016-02-11 17:50:53 +00:00
parent f72848e7a4
commit 02d8b4524a

View File

@ -1863,6 +1863,8 @@ RangeAnalysis::analyzeLoop(MBasicBlock* header)
direction = NegateBranchDirection(direction);
MBasicBlock* otherBlock = branch->branchSuccessor(direction);
if (!otherBlock->isMarked()) {
if (!alloc().ensureBallast())
return false;
iterationBound =
analyzeLoopIterationCount(header, branch, direction);
if (iterationBound)