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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 1922953002: Revert "VM: Improve phi-elimination to improve code inside of try-catch." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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') | runtime/vm/redundancy_elimination.cc » ('j') | 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 db2f1f60da53e4dc0aaa8f1e236626e6c8cc6d8e..3869329698d03e1673511807f032458ec79c6663 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -3520,22 +3520,6 @@ bool PhiInstr::IsRedundant() const {
}
-bool PhiInstr::HasReplacement(Definition** replacement) const {
- ASSERT(InputCount() > 1);
- ASSERT(!IsRedundant());
- // At least >=1 inputs are different from 'this': Check for
- // v <- phi (v, v, ..., r, v, ..., v)
- // where r is the replacement.
- intptr_t i = 0;
- while (InputAt(i)->definition() == this) ++i;
- *replacement = InputAt(i)->definition();
- while (++i < InputCount()) {
- if (InputAt(i)->definition() != this) return false;
- }
- return true;
-}
-
-
bool CheckArrayBoundInstr::IsFixedLengthArrayType(intptr_t cid) {
return LoadFieldInstr::IsFixedLengthArrayCid(cid);
}
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/redundancy_elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698