Index: src/hydrogen-load-elimination.cc |
diff --git a/src/hydrogen-load-elimination.cc b/src/hydrogen-load-elimination.cc |
index f37de90ff3d37311d0d3d4fa6916967bed036b87..f3b574847f8e3ed6b9e5807fa0cee894b18af41b 100644 |
--- a/src/hydrogen-load-elimination.cc |
+++ b/src/hydrogen-load-elimination.cc |
@@ -349,7 +349,9 @@ class HLoadEliminationTable : public ZoneObject { |
bool Equal(HValue* a, HValue* b) { |
if (a == b) return true; |
- if (a != NULL && b != NULL) return a->Equals(b); |
+ if (a != NULL && b != NULL && a->CheckFlag(HValue::kUseGVN)) { |
+ return a->Equals(b); |
+ } |
return false; |
} |