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

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 29901)
+++ runtime/vm/flow_graph_type_propagator.cc (working copy)
@@ -809,28 +809,22 @@
}
+CompileType TestSmiInstr::ComputeType() const {
+ return CompileType::Bool();
+}
+
srdjan 2013/11/05 18:30:34 one more line
Florian Schneider 2013/11/06 12:13:42 Done.
CompileType EqualityCompareInstr::ComputeType() const {
// Used for numeric comparisons only.
return CompileType::Bool();
}
-bool EqualityCompareInstr::RecomputeType() {
- return UpdateType(ComputeType());
-}
-
-
CompileType RelationalOpInstr::ComputeType() const {
// Used for numeric comparisons only.
return CompileType::Bool();
}
-bool RelationalOpInstr::RecomputeType() {
- return UpdateType(ComputeType());
-}
-
-
CompileType CurrentContextInstr::ComputeType() const {
return CompileType::FromCid(kContextCid);
}

Powered by Google App Engine
This is Rietveld 408576698