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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 669613003: Ignore redundant parallel moves when checking if a block is empty. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index ce6092afed4789b100a15d61c894a1700ec73bdd..c9c196855c5cc66bc110e57b4ad45a0910b5be63 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -2566,6 +2566,16 @@ void ParameterInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
}
+bool ParallelMoveInstr::IsRedundant() const {
+ for (intptr_t i = 0; i < moves_.length(); i++) {
+ if (!moves_[i]->IsRedundant()) {
+ return false;
+ }
+ }
+ return true;
+}
+
+
LocationSummary* ParallelMoveInstr::MakeLocationSummary(Isolate* isolate,
bool optimizing) const {
return NULL;
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698