summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2017-07-18 15:15:42 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-07-18 15:15:42 +0000
commit9fb4e85d6e42b3f060ddcefcbf39bdfec656fc52 (patch)
tree80e525f139b88754c23272dd5cf612312b7a61ef
parentd44c0d8c7f96644f8176e493de2fbde3eb198bb4 (diff)
parent08490b84048a0267694268185441b70cfa090185 (diff)
Merge "Only honor $inline$ in AOT."
-rw-r--r--compiler/optimizing/inliner.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc
index 142c95780e..18390cc4d4 100644
--- a/compiler/optimizing/inliner.cc
+++ b/compiler/optimizing/inliner.cc
@@ -146,7 +146,10 @@ void HInliner::Run() {
// that this method is actually inlined;
// - if a method's name contains the substring "$noinline$", do not
// inline that method.
- const bool honor_inlining_directives = IsCompilingWithCoreImage();
+ // We limit this to AOT compilation, as the JIT may or may not inline
+ // depending on the state of classes at runtime.
+ const bool honor_inlining_directives =
+ IsCompilingWithCoreImage() && Runtime::Current()->IsAotCompiler();
// Keep a copy of all blocks when starting the visit.
ArenaVector<HBasicBlock*> blocks = graph_->GetReversePostOrder();