summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/inliner.cc
diff options
context:
space:
mode:
authorMingyao Yang <mingyao@google.com>2015-03-02 15:14:13 -0800
committerMingyao Yang <mingyao@google.com>2015-03-03 17:39:04 -0800
commite4335eb5bcbca6927e51c10cf0de3516d94ef599 (patch)
tree3f69b4a17dc5d7ac5f6cab1ffee5a4091b5c9ba9 /compiler/optimizing/inliner.cc
parent5e42cd3eee2c89214a331a36fe226cfcc57917a3 (diff)
downloadart-e4335eb5bcbca6927e51c10cf0de3516d94ef599.zip
art-e4335eb5bcbca6927e51c10cf0de3516d94ef599.tar.gz
art-e4335eb5bcbca6927e51c10cf0de3516d94ef599.tar.bz2
Make BCE a no-op if there is no array access.
Change-Id: I8456182808c1dbaa0c0ae1b8c2e94bb17baf5f29
Diffstat (limited to 'compiler/optimizing/inliner.cc')
-rw-r--r--compiler/optimizing/inliner.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc
index d55a3ca..b34957a 100644
--- a/compiler/optimizing/inliner.cc
+++ b/compiler/optimizing/inliner.cc
@@ -216,6 +216,10 @@ bool HInliner::TryInline(HInvoke* invoke_instruction,
callee_graph->InlineInto(graph_, invoke_instruction);
+ if (callee_graph->HasArrayAccesses()) {
+ graph_->SetHasArrayAccesses(true);
+ }
+
// Now that we have inlined the callee, we need to update the next
// instruction id of the caller, so that new instructions added
// after optimizations get a unique id.