From b11b0725d02aafd6e3ea4eb514b215149c893bf0 Mon Sep 17 00:00:00 2001 From: David Brazdil Date: Thu, 28 Jan 2016 16:22:40 +0000 Subject: ART: Fix gtest after liveness CL Change-Id: I2d029044cebe6e1ee7d7efb2e20541060f88c07c --- compiler/optimizing/codegen_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/codegen_test.cc') diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc index 19d63de499..322a577bbf 100644 --- a/compiler/optimizing/codegen_test.cc +++ b/compiler/optimizing/codegen_test.cc @@ -671,10 +671,10 @@ TEST_F(CodegenTest, NonMaterializedCondition) { then_block->AddInstruction(new (&allocator) HReturn(constant0)); else_block->AddInstruction(new (&allocator) HReturn(constant1)); - ASSERT_TRUE(equal->NeedsMaterialization()); + ASSERT_FALSE(equal->IsEmittedAtUseSite()); TransformToSsa(graph); PrepareForRegisterAllocation(graph).Run(); - ASSERT_FALSE(equal->NeedsMaterialization()); + ASSERT_TRUE(equal->IsEmittedAtUseSite()); auto hook_before_codegen = [](HGraph* graph_in) { HBasicBlock* block = graph_in->GetEntryBlock()->GetSuccessors()[0]; -- cgit v1.2.3-59-g8ed1b