diff options
author | Mingyao Yang <mingyao@google.com> | 2015-03-02 15:14:13 -0800 |
---|---|---|
committer | Mingyao Yang <mingyao@google.com> | 2015-03-03 17:39:04 -0800 |
commit | e4335eb5bcbca6927e51c10cf0de3516d94ef599 (patch) | |
tree | 3f69b4a17dc5d7ac5f6cab1ffee5a4091b5c9ba9 /compiler/optimizing/inliner.cc | |
parent | 5e42cd3eee2c89214a331a36fe226cfcc57917a3 (diff) | |
download | art-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.cc | 4 |
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. |