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

Unified Diff: runtime/vm/compiler.cc

Issue 11505002: Improve redundant load elimination (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address comments Created 8 years 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/compiler.cc
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
index 6e4fb44f9499cfdca3fea9b5ff94dada78a2e8b2..9ba029666b3adafd52ca85900d0b46a7a0f9e719 100644
--- a/runtime/vm/compiler.cc
+++ b/runtime/vm/compiler.cc
@@ -52,6 +52,7 @@ DEFINE_FLAG(bool, range_analysis, true, "Enable range analysis");
DEFINE_FLAG(bool, verify_compiler, false,
"Enable compiler verification assertions");
DECLARE_FLAG(bool, print_flow_graph);
+DECLARE_FLAG(bool, print_flow_graph_optimized);
// Compile a function. Should call only if the function has not been compiled.
@@ -160,7 +161,8 @@ static bool CompileParsedFunctionHelper(const ParsedFunction& parsed_function,
flow_graph->ComputeSSA(0, NULL);
}
- if (FLAG_print_flow_graph) {
+ if (FLAG_print_flow_graph ||
+ (optimized && FLAG_print_flow_graph_optimized)) {
OS::Print("Before Optimizations\n");
FlowGraphPrinter printer(*flow_graph);
printer.PrintBlocks();
@@ -246,7 +248,7 @@ static bool CompileParsedFunctionHelper(const ParsedFunction& parsed_function,
FlowGraphAllocator allocator(*flow_graph);
allocator.AllocateRegisters();
- if (FLAG_print_flow_graph) {
+ if (FLAG_print_flow_graph || FLAG_print_flow_graph_optimized) {
OS::Print("After Optimizations:\n");
FlowGraphPrinter printer(*flow_graph);
printer.PrintBlocks();

Powered by Google App Engine
This is Rietveld 408576698