Index: runtime/vm/flow_graph_inliner.cc |
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc |
index 2e8580a07f9de0640ee1735e9cc2c3e2632b3dea..60bdfaf026965d9a58f4b6af3ea070728ab2baf6 100644 |
--- a/runtime/vm/flow_graph_inliner.cc |
+++ b/runtime/vm/flow_graph_inliner.cc |
@@ -497,6 +497,9 @@ class CallSiteInliner : public ValueObject { |
intptr_t instr_count, |
intptr_t call_site_count, |
intptr_t const_arg_count) { |
+ if (FlowGraphInliner::AlwaysInline(callee)) { |
+ return true; |
+ } |
if (inlined_size_ > FLAG_inlining_caller_size_threshold) { |
// Prevent methods becoming humongous and thus slow to compile. |
return false; |
@@ -519,9 +522,6 @@ class CallSiteInliner : public ValueObject { |
(instr_count <= FLAG_inlining_constant_arguments_min_size_threshold)) { |
return true; |
} |
- if (FlowGraphInliner::AlwaysInline(callee)) { |
- return true; |
- } |
return false; |
} |