Bug 1503326. r=sunfish, r=nbp, a=jcristau
authorBenjamin Bouvier <benj@benj.me>
Mon, 05 Nov 2018 16:38:42 +0100
changeset 498428 d84c76f0dddd
parent 498427 6598cfafc162
child 498429 43799c2555d4
push id10154
push userryanvm@gmail.com
push dateFri, 09 Nov 2018 16:38:03 +0000
treeherdermozilla-beta@d84c76f0dddd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssunfish, nbp, jcristau
bugs1503326
milestone64.0
Bug 1503326. r=sunfish, r=nbp, a=jcristau
js/src/jit/RangeAnalysis.cpp
--- a/js/src/jit/RangeAnalysis.cpp
+++ b/js/src/jit/RangeAnalysis.cpp
@@ -2286,17 +2286,17 @@ RangeAnalysis::analyzeLoopPhi(LoopIterat
 
     MOZ_ASSERT(phi->numOperands() == 2);
 
     MDefinition* initial = phi->getLoopPredecessorOperand();
     if (initial->block()->isMarked()) {
         return;
     }
 
-    SimpleLinearSum modified = ExtractLinearSum(phi->getLoopBackedgeOperand());
+    SimpleLinearSum modified = ExtractLinearSum(phi->getLoopBackedgeOperand(), MathSpace::Infinite);
 
     if (modified.term != phi || modified.constant == 0) {
         return;
     }
 
     if (!phi->range()) {
         phi->setRange(new(alloc()) Range(phi));
     }