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:
parent
e5db8a93df
commit
2416d69183
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user