Index: runtime/vm/compiler.cc |
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc |
index 8fc327e1030a9ab687363ce720ca11c069475891..b2a26dcb87ea14e3e85baccb327d7c1ec439490a 100644 |
--- a/runtime/vm/compiler.cc |
+++ b/runtime/vm/compiler.cc |
@@ -431,7 +431,8 @@ static bool CompileParsedFunctionHelper(CompilationPipeline* pipeline, |
bool done = false; |
// volatile because the variable may be clobbered by a longjmp. |
volatile bool use_far_branches = false; |
- volatile bool use_speculative_inlining = true; |
+ volatile bool use_speculative_inlining = |
+ FLAG_max_speculative_inlining_attempts > 0; |
GrowableArray<intptr_t> inlining_black_list; |
while (!done) { |