Fix induction variable detection.
authormmassi@chromium.org <mmassi@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 18 Mar 2013 17:36:24 +0000 (17:36 +0000)
committermmassi@chromium.org <mmassi@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 18 Mar 2013 17:36:24 +0000 (17:36 +0000)
Review URL: https://codereview.chromium.org/12919005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13977 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/hydrogen-instructions.cc

index 2aab369..fc80748 100644 (file)
@@ -174,7 +174,7 @@ bool HValue::IsRelationTrue(NumericRelation relation,
                             int offset,
                             int scale) {
   if (this == other) {
-    return NumericRelation::Eq().Implies(relation);
+    return scale == 0 && relation.IsExtendable(offset);
   }
 
   // Test the direct relation.