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

Unified Diff: runtime/vm/flow_graph_type_propagator.cc

Issue 59613005: Merge (x & y) == 0 pattern to emit a single test instruction. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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/flow_graph_type_propagator.cc
===================================================================
--- runtime/vm/flow_graph_type_propagator.cc (revision 29964)
+++ runtime/vm/flow_graph_type_propagator.cc (working copy)
@@ -803,14 +803,14 @@
}
-CompileType EqualityCompareInstr::ComputeType() const {
- // Used for numeric comparisons only.
+CompileType TestSmiInstr::ComputeType() const {
return CompileType::Bool();
}
-bool EqualityCompareInstr::RecomputeType() {
- return UpdateType(ComputeType());
+CompileType EqualityCompareInstr::ComputeType() const {
+ // Used for numeric comparisons only.
+ return CompileType::Bool();
}
@@ -820,11 +820,6 @@
}
-bool RelationalOpInstr::RecomputeType() {
- return UpdateType(ComputeType());
-}
-
-
CompileType CurrentContextInstr::ComputeType() const {
return CompileType::FromCid(kContextCid);
}

Powered by Google App Engine
This is Rietveld 408576698