diff options
| author | 2015-04-15 13:29:02 +0000 | |
|---|---|---|
| committer | 2015-04-15 13:29:03 +0000 | |
| commit | acf9b7b7616a9b104e6f2146051d8e14d9cb9030 (patch) | |
| tree | 14ce120d10571c187a2c6bdc87b350cb9a7e3ad6 /compiler/optimizing/linearize_test.cc | |
| parent | e1d0b80eef04606e426377f30e7e862b3337e2c6 (diff) | |
| parent | 0d9f17de8f21a10702de1510b73e89d07b3b9bbf (diff) | |
Merge "Move the linear order to the HGraph."
Diffstat (limited to 'compiler/optimizing/linearize_test.cc')
| -rw-r--r-- | compiler/optimizing/linearize_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/optimizing/linearize_test.cc b/compiler/optimizing/linearize_test.cc index 28c5555d57..7818c606db 100644 --- a/compiler/optimizing/linearize_test.cc +++ b/compiler/optimizing/linearize_test.cc @@ -50,12 +50,12 @@ static void TestCode(const uint16_t* data, const int* expected_order, size_t num std::unique_ptr<const X86InstructionSetFeatures> features_x86( X86InstructionSetFeatures::FromCppDefines()); x86::CodeGeneratorX86 codegen(graph, *features_x86.get(), CompilerOptions()); - SsaLivenessAnalysis liveness(*graph, &codegen); + SsaLivenessAnalysis liveness(graph, &codegen); liveness.Analyze(); - ASSERT_EQ(liveness.GetLinearOrder().Size(), number_of_blocks); + ASSERT_EQ(graph->GetLinearOrder().Size(), number_of_blocks); for (size_t i = 0; i < number_of_blocks; ++i) { - ASSERT_EQ(liveness.GetLinearOrder().Get(i)->GetBlockId(), expected_order[i]); + ASSERT_EQ(graph->GetLinearOrder().Get(i)->GetBlockId(), expected_order[i]); } } |