Bug 801830: Ionmonkey: correctly compare definitions in MMul
authorHannes Verschore <hv1989@gmail.com>
Wed, 17 Oct 2012 18:34:39 +0200
changeset 110568 b21bafeb5b50c4c8f2d7502ef80e796458d253a7
parent 110567 ef8010af9fe64de113d0226b10523b47b09dd1a6
child 110569 c654454d60e13cf191a2af45a152473f29930d72
push id23700
push userryanvm@gmail.com
push dateThu, 18 Oct 2012 02:10:26 +0000
treeherdermozilla-central@5142bbd4da12 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs801830
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 801830: Ionmonkey: correctly compare definitions in MMul
js/src/ion/MIR.cpp
--- a/js/src/ion/MIR.cpp
+++ b/js/src/ion/MIR.cpp
@@ -916,17 +916,17 @@ MMul::foldsTo(bool useValueNumbers)
 {
     MDefinition *out = MBinaryArithInstruction::foldsTo(useValueNumbers);
     if (out != this)
         return out;
 
     if (specialization() != MIRType_Int32)
         return this;
 
-    if (lhs()->congruentTo(rhs()))
+    if (EqualValues(useValueNumbers, lhs(), rhs()))
         canBeNegativeZero_ = false;
 
     return this;
 }
 
 void
 MMul::analyzeEdgeCasesForward()
 {