Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1787)

Unified Diff: runtime/vm/intermediate_language.cc

Issue 11234002: Enable redundancy elimination for array loads. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 13809)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -132,6 +132,13 @@
}
+bool LoadIndexedInstr::AttributesEqual(Instruction* other) const {
+ LoadIndexedInstr* other_load = other->AsLoadIndexed();
+ ASSERT(other_load != NULL);
+ return class_id() == other_load->class_id();
+}
+
+
bool ConstantInstr::AttributesEqual(Instruction* other) const {
ConstantInstr* other_constant = other->AsConstant();
ASSERT(other_constant != NULL);

Powered by Google App Engine
This is Rietveld 408576698