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

Unified Diff: runtime/vm/il_printer.cc

Issue 10698153: Change comparison-to-branch fusion to actually remove comparison from the graph. (Closed) Base URL: https://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/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index 1d33db8258171a8f89bbdedee61b048de87bf10c..efe0648b0e2b033bd5f321b38d7c60886ca80cbc 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -403,13 +403,13 @@ void ReThrowInstr::PrintTo(BufferFormatter* f) const {
void BranchInstr::PrintTo(BufferFormatter* f) const {
f->Print(" %s ", DebugName());
f->Print("if ");
- value()->PrintTo(f);
if (is_fused_with_comparison()) {
- f->Print(" (fused)");
- }
- if (is_negated()) {
- f->Print(" (negated)");
+ if (is_negated()) f->Print(" not ");
+ fused_with_comparison_->PrintTo(f);
+ } else {
+ value()->PrintTo(f);
}
+
f->Print(" goto (%d, %d)",
true_successor()->block_id(),
false_successor()->block_id());

Powered by Google App Engine
This is Rietveld 408576698