Commit 2416d691 authored by mmassi@chromium.org's avatar mmassi@chromium.org

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
parent e5db8a93
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment