diff options
| author | Calin Juravle <calin@google.com> | 2015-04-21 14:07:50 +0100 |
|---|---|---|
| committer | Calin Juravle <calin@google.com> | 2015-04-21 15:44:29 +0100 |
| commit | 7a9c885684c965fe84f91d8ad74f54f869e2a448 (patch) | |
| tree | 9323e6b4c6a3391f279d1b4837647fcaedc3218f /compiler/optimizing/dead_code_elimination.cc | |
| parent | 2be39e05ea8c4475278fe6a6573c3c8f04e075d4 (diff) | |
| download | art-7a9c885684c965fe84f91d8ad74f54f869e2a448.tar.gz art-7a9c885684c965fe84f91d8ad74f54f869e2a448.tar.bz2 art-7a9c885684c965fe84f91d8ad74f54f869e2a448.zip | |
Run DCE again after all the other optimizations have run.
On docs this doubles the amount of instructions removed.
Change-Id: I1712a92c0c0b3b32b111d194b64d8ea81d652822
Diffstat (limited to 'compiler/optimizing/dead_code_elimination.cc')
| -rw-r--r-- | compiler/optimizing/dead_code_elimination.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/optimizing/dead_code_elimination.cc b/compiler/optimizing/dead_code_elimination.cc index 94990402e5..8045cc5027 100644 --- a/compiler/optimizing/dead_code_elimination.cc +++ b/compiler/optimizing/dead_code_elimination.cc @@ -41,6 +41,7 @@ void HDeadCodeElimination::Run() { && !inst->IsMemoryBarrier() // If we added an explicit barrier then we should keep it. && !inst->HasUses()) { block->RemoveInstruction(inst); + MaybeRecordStat(MethodCompilationStat::kRemovedDeadInstruction); } } } |
