diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-05-14 09:43:38 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-05-14 14:26:11 +0100 |
commit | f635e63318447ca04731b265a86a573c9ed1737c (patch) | |
tree | 47cab84a6ac47d8a4f5f281e3eabdf1780f220d0 /compiler/optimizing/ssa_liveness_analysis.cc | |
parent | d115735fe5523ff72319f0968f773683323c7f79 (diff) | |
download | art-f635e63318447ca04731b265a86a573c9ed1737c.zip art-f635e63318447ca04731b265a86a573c9ed1737c.tar.gz art-f635e63318447ca04731b265a86a573c9ed1737c.tar.bz2 |
Add a compilation tracing mechanism to the new compiler.
Code mostly imported from: https://android-review.googlesource.com/#/c/81653/.
Change-Id: I150fe942be0fb270e03fabb19032180f7a065d13
Diffstat (limited to 'compiler/optimizing/ssa_liveness_analysis.cc')
-rw-r--r-- | compiler/optimizing/ssa_liveness_analysis.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/optimizing/ssa_liveness_analysis.cc b/compiler/optimizing/ssa_liveness_analysis.cc index 0ab77ca..7c2ec39 100644 --- a/compiler/optimizing/ssa_liveness_analysis.cc +++ b/compiler/optimizing/ssa_liveness_analysis.cc @@ -29,14 +29,14 @@ void SsaLivenessAnalysis::NumberInstructions() { for (HReversePostOrderIterator it(graph_); !it.Done(); it.Advance()) { HBasicBlock* block = it.Current(); - for (HInstructionIterator it(*block->GetPhis()); !it.Done(); it.Advance()) { + for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { HInstruction* current = it.Current(); if (current->HasUses()) { current->SetSsaIndex(ssa_index++); } } - for (HInstructionIterator it(*block->GetInstructions()); !it.Done(); it.Advance()) { + for (HInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) { HInstruction* current = it.Current(); if (current->HasUses()) { current->SetSsaIndex(ssa_index++); @@ -73,7 +73,7 @@ void SsaLivenessAnalysis::ComputeInitialSets() { BitVector* kill = GetKillSet(*block); BitVector* live_in = GetLiveInSet(*block); - for (HBackwardInstructionIterator it(*block->GetInstructions()); !it.Done(); it.Advance()) { + for (HBackwardInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) { HInstruction* current = it.Current(); if (current->HasSsaIndex()) { kill->SetBit(current->GetSsaIndex()); @@ -99,7 +99,7 @@ void SsaLivenessAnalysis::ComputeInitialSets() { } } - for (HInstructionIterator it(*block->GetPhis()); !it.Done(); it.Advance()) { + for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { HInstruction* current = it.Current(); if (current->HasSsaIndex()) { kill->SetBit(current->GetSsaIndex()); |