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
This commit is contained in:
mmassi@chromium.org 2013-03-18 17:36:24 +00:00
parent e5db8a93df
commit 2416d69183

View 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.