From: mmassi@chromium.org Date: Mon, 18 Mar 2013 17:36:24 +0000 (+0000) Subject: Fix induction variable detection. X-Git-Tag: upstream/4.7.83~14822 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2416d69183a50f3e03a261d0c6f7a4cb491e2eb2;p=platform%2Fupstream%2Fv8.git Fix induction variable detection. Review URL: https://codereview.chromium.org/12919005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13977 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc index 2aab369..fc80748 100644 --- a/src/hydrogen-instructions.cc +++ b/src/hydrogen-instructions.cc @@ -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.