diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2015-04-15 14:17:44 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2015-04-15 14:17:44 +0100 |
commit | 0d9f17de8f21a10702de1510b73e89d07b3b9bbf (patch) | |
tree | 3d58a2a165ee2bc5af0e813b1ffa893fba72ed6d /compiler/optimizing/optimizing_compiler.cc | |
parent | 9bb3e8e10d7d9230a323511094a9e260062a1473 (diff) | |
download | art-0d9f17de8f21a10702de1510b73e89d07b3b9bbf.tar.gz art-0d9f17de8f21a10702de1510b73e89d07b3b9bbf.tar.bz2 art-0d9f17de8f21a10702de1510b73e89d07b3b9bbf.zip |
Move the linear order to the HGraph.
Bug found by Zheng Xu: SsaLivenessAnalysis being a stack allocated
object, we should not refer to it in later phases of the compiler.
Specifically, the code generator was using the linear order, which
was stored in the liveness analysis object.
Change-Id: I574641f522b7b86fc43f3914166108efc72edb3b
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 56cea8aba7..efca1a59ba 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -361,7 +361,7 @@ static void AllocateRegisters(HGraph* graph, CodeGenerator* codegen, PassInfoPrinter* pass_info_printer) { PrepareForRegisterAllocation(graph).Run(); - SsaLivenessAnalysis liveness(*graph, codegen); + SsaLivenessAnalysis liveness(graph, codegen); { PassInfo pass_info(SsaLivenessAnalysis::kLivenessPassName, pass_info_printer); liveness.Analyze(); |