Index: runtime/vm/flow_graph_inliner.cc |
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc |
index 1601565197a82c56f0e799e6b9edc79f7e9a5056..d6942638b1c8dcfed0f895ffa76c5a2caeb417d4 100644 |
--- a/runtime/vm/flow_graph_inliner.cc |
+++ b/runtime/vm/flow_graph_inliner.cc |
@@ -1471,7 +1471,8 @@ bool PolymorphicInliner::CheckNonInlinedDuplicate(const Function& target) { |
bool PolymorphicInliner::TryInliningPoly(intptr_t receiver_cid, |
const Function& target) { |
- if (owner_->inliner_->use_speculative_inlining() && |
+ if ((!FLAG_precompiled_mode || |
+ owner_->inliner_->use_speculative_inlining()) && |
TryInlineRecognizedMethod(receiver_cid, target)) { |
owner_->inlined_ = true; |
return true; |