diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2015-02-02 18:24:11 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2015-02-03 18:11:46 +0000 |
commit | 276d9daaedfbff716339f94d55e6eff98b7434c6 (patch) | |
tree | fdef0e2d95396aedae484dc5163689f282a8dd12 /compiler/optimizing/side_effects_analysis.cc | |
parent | bd17c3b46b035861ced434d6ed4d4fe183736e65 (diff) | |
download | art-276d9daaedfbff716339f94d55e6eff98b7434c6.tar.gz art-276d9daaedfbff716339f94d55e6eff98b7434c6.tar.bz2 art-276d9daaedfbff716339f94d55e6eff98b7434c6.zip |
Inline methods with multiple blocks.
Change-Id: I3431af60e97fae230e0b6e98bcf0acc0ee9abf8c
Diffstat (limited to 'compiler/optimizing/side_effects_analysis.cc')
-rw-r--r-- | compiler/optimizing/side_effects_analysis.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/optimizing/side_effects_analysis.cc b/compiler/optimizing/side_effects_analysis.cc index 96e1c8f8eb..ea1ca5a731 100644 --- a/compiler/optimizing/side_effects_analysis.cc +++ b/compiler/optimizing/side_effects_analysis.cc @@ -19,6 +19,11 @@ namespace art { void SideEffectsAnalysis::Run() { + // Inlining might have created more blocks, so we need to increase the size + // if needed. + block_effects_.SetSize(graph_->GetBlocks().Size()); + loop_effects_.SetSize(graph_->GetBlocks().Size()); + if (kIsDebugBuild) { for (HReversePostOrderIterator it(*graph_); !it.Done(); it.Advance()) { HBasicBlock* block = it.Current(); |