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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 10802025: Fuse compare with branch at graph building time. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/flow_graph_compiler.cc
===================================================================
--- runtime/vm/flow_graph_compiler.cc (revision 9728)
+++ runtime/vm/flow_graph_compiler.cc (working copy)
@@ -476,7 +476,7 @@
BranchInstr* branch) {
ASSERT(branch != NULL);
assembler()->comisd(left, right);
- BlockEntryInstr* nan_result = branch->is_negated() ?
+ BlockEntryInstr* nan_result = (true_condition == NOT_EQUAL) ?
branch->true_successor() : branch->false_successor();
assembler()->j(PARITY_EVEN, GetBlockLabel(nan_result));
branch->EmitBranchOnCondition(this, true_condition);

Powered by Google App Engine
This is Rietveld 408576698