From ec7e4727e99aa1416398ac5a684f5024817a25c7 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 6 Jun 2014 11:24:33 +0100 Subject: Fix some bugs in graph construction/simplification methods. Also fix a brano during SSA construction. The code should not have been commented out. Added a test to cover what the code intends. Change-Id: Ia00ae79dcf75eb0d412f07649d73e7f94dbfb6f0 --- compiler/optimizing/ssa_builder.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/ssa_builder.cc') diff --git a/compiler/optimizing/ssa_builder.cc b/compiler/optimizing/ssa_builder.cc index 1284a97..54c3c5d 100644 --- a/compiler/optimizing/ssa_builder.cc +++ b/compiler/optimizing/ssa_builder.cc @@ -102,8 +102,8 @@ void SsaBuilder::VisitBasicBlock(HBasicBlock* block) { for (size_t i = 0, e = block->GetPredecessors().Size(); i < e; ++i) { HInstruction* current = ValueOfLocal(block->GetPredecessors().Get(i), local); if (current == nullptr) { -// one_predecessor_has_no_value = true; -// break; + one_predecessor_has_no_value = true; + break; } else if (current != value) { is_different = true; } -- cgit v1.1