diff options
Diffstat (limited to 'compiler/optimizing/inliner.cc')
-rw-r--r-- | compiler/optimizing/inliner.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc index e22f7ccbf1..bd9267c4db 100644 --- a/compiler/optimizing/inliner.cc +++ b/compiler/optimizing/inliner.cc @@ -38,6 +38,11 @@ static constexpr int kMaxInlineCodeUnits = 100; static constexpr int kDepthLimit = 5; void HInliner::Run() { + if (graph_->IsDebuggable()) { + // For simplicity, we currently never inline when the graph is debuggable. This avoids + // doing some logic in the runtime to discover if a method could have been inlined. + return; + } const GrowableArray<HBasicBlock*>& blocks = graph_->GetReversePostOrder(); for (size_t i = 0; i < blocks.Size(); ++i) { HBasicBlock* block = blocks.Get(i); |