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

Unified Diff: runtime/vm/intermediate_language_x64.cc

Issue 10559072: Fuse Comparison->BooleanNegate->Branch. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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_ia32.cc ('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_x64.cc
===================================================================
--- runtime/vm/intermediate_language_x64.cc (revision 8911)
+++ runtime/vm/intermediate_language_x64.cc (working copy)
@@ -542,7 +542,9 @@
if (comp->is_fused_with_branch()) {
BranchInstr* branch = comp->fused_with_branch();
- __ j(PARITY_EVEN, compiler->GetBlockLabel(branch->false_successor()));
+ BlockEntryInstr* nan_result = branch->is_negated() ?
+ branch->true_successor() : branch->false_successor();
+ __ j(PARITY_EVEN, compiler->GetBlockLabel(nan_result));
branch->EmitBranchOnCondition(compiler, true_condition);
} else {
Register result = comp->locs()->out().reg();
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698