Index: runtime/vm/flow_graph_inliner.cc |
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc |
index 0ade97da9bed99208d740dd8feb4e652bae098d3..8cec8d7cbd986c6496aad184290b10c720668132 100644 |
--- a/runtime/vm/flow_graph_inliner.cc |
+++ b/runtime/vm/flow_graph_inliner.cc |
@@ -810,7 +810,7 @@ class CallSiteInliner : public ValueObject { |
DEBUG_ASSERT(callee_graph->VerifyUseLists()); |
} |
- if (FLAG_trace_inlining && |
+ if (FLAG_support_il_printer && FLAG_trace_inlining && |
(FLAG_print_flow_graph || FLAG_print_flow_graph_optimized)) { |
THR_Print("Callee graph for inlining %s\n", |
function.ToFullyQualifiedCString()); |
@@ -1908,7 +1908,8 @@ void FlowGraphInliner::Inline() { |
TRACE_INLINING(THR_Print("Inlining calls in %s\n", top.ToCString())); |
- if (trace_inlining() && |
+ if (FLAG_support_il_printer && |
+ trace_inlining() && |
(FLAG_print_flow_graph || FLAG_print_flow_graph_optimized)) { |
THR_Print("Before Inlining of %s\n", flow_graph_-> |
function().ToFullyQualifiedCString()); |
@@ -1926,7 +1927,8 @@ void FlowGraphInliner::Inline() { |
flow_graph_->DiscoverBlocks(); |
if (trace_inlining()) { |
THR_Print("Inlining growth factor: %f\n", inliner.GrowthFactor()); |
- if (FLAG_print_flow_graph || FLAG_print_flow_graph_optimized) { |
+ if (FLAG_support_il_printer && |
+ (FLAG_print_flow_graph || FLAG_print_flow_graph_optimized)) { |
THR_Print("After Inlining of %s\n", flow_graph_-> |
function().ToFullyQualifiedCString()); |
FlowGraphPrinter printer(*flow_graph_); |