Bug 1503326. r=sunfish, r=nbp, a=jcristau
authorBenjamin Bouvier <benj@benj.me>
Mon, 05 Nov 2018 16:38:42 +0100
changeset 501139 d84c76f0ddddc7a4fe4d67a327af0de4b5a6fb65
parent 501138 6598cfafc16242e19a616b138af4e142ece943c9
child 501140 43799c2555d44546c7070927f50778007a9891b9
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [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));
     }