summaryrefslogtreecommitdiffstats
path: root/js/src/jit
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-12-13 12:24:17 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-12-13 12:24:17 +0100
commit99b534f23d9db2a6ef6a030aeb95e297cb887dd8 (patch)
tree9df18a5bd1c57a857bfba327b944847adae66407 /js/src/jit
parent195b9d8780a21f3347d8eba76c6c4d065c8fac3c (diff)
downloadUXP-99b534f23d9db2a6ef6a030aeb95e297cb887dd8.tar
UXP-99b534f23d9db2a6ef6a030aeb95e297cb887dd8.tar.gz
UXP-99b534f23d9db2a6ef6a030aeb95e297cb887dd8.tar.lz
UXP-99b534f23d9db2a6ef6a030aeb95e297cb887dd8.tar.xz
UXP-99b534f23d9db2a6ef6a030aeb95e297cb887dd8.zip
Restrict ExtractLinearSum to find non-wrapping results.
Diffstat (limited to 'js/src/jit')
-rw-r--r--js/src/jit/RangeAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jit/RangeAnalysis.cpp b/js/src/jit/RangeAnalysis.cpp
index 95484c249..d64f9b8ca 100644
--- a/js/src/jit/RangeAnalysis.cpp
+++ b/js/src/jit/RangeAnalysis.cpp
@@ -2167,7 +2167,7 @@ RangeAnalysis::analyzeLoopPhi(MBasicBlock* header, LoopIterationBound* loopBound
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;