summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/code_generator.cc
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-04-24 12:43:16 +0100
committerNicolas Geoffray <ngeoffray@google.com>2014-04-28 16:21:40 +0100
commitc32e770f21540e4e9eda6dc7f770e745d33f1b9f (patch)
tree56a76d7399bf749a4500fb60483e0dc075a24ee7 /compiler/optimizing/code_generator.cc
parent618a87009202dc959c935ed8f237ae32bdec57d0 (diff)
downloadart-c32e770f21540e4e9eda6dc7f770e745d33f1b9f.zip
art-c32e770f21540e4e9eda6dc7f770e745d33f1b9f.tar.gz
art-c32e770f21540e4e9eda6dc7f770e745d33f1b9f.tar.bz2
Add a Transform to SSA phase to the optimizing compiler.
Change-Id: Ia9700756a0396d797a00b529896487d52c989329
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
-rw-r--r--compiler/optimizing/code_generator.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc
index 7e63c69..babb1f5 100644
--- a/compiler/optimizing/code_generator.cc
+++ b/compiler/optimizing/code_generator.cc
@@ -47,7 +47,7 @@ void CodeGenerator::CompileBlock(HBasicBlock* block) {
Bind(GetLabelOf(block));
HGraphVisitor* location_builder = GetLocationBuilder();
HGraphVisitor* instruction_visitor = GetInstructionVisitor();
- for (HInstructionIterator it(block); !it.Done(); it.Advance()) {
+ for (HInstructionIterator it(*block->GetInstructions()); !it.Done(); it.Advance()) {
HInstruction* current = it.Current();
current->Accept(location_builder);
InitLocations(current);
@@ -57,7 +57,7 @@ void CodeGenerator::CompileBlock(HBasicBlock* block) {
void CodeGenerator::InitLocations(HInstruction* instruction) {
if (instruction->GetLocations() == nullptr) return;
- for (int i = 0; i < instruction->InputCount(); i++) {
+ for (size_t i = 0; i < instruction->InputCount(); i++) {
Location location = instruction->GetLocations()->InAt(i);
if (location.IsValid()) {
// Move the input to the desired location.