diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-12-01 10:31:54 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-12-15 22:52:27 +0000 |
commit | e53798a7e3267305f696bf658e418c92e63e0834 (patch) | |
tree | 8979bbed96b107a5a6bbae9285ff4e0c362dad95 /compiler/optimizing/register_allocator_test.cc | |
parent | e6c0cdd11097dd72275ac24f1e98217c299d973e (diff) | |
download | art-e53798a7e3267305f696bf658e418c92e63e0834.tar.gz art-e53798a7e3267305f696bf658e418c92e63e0834.tar.bz2 art-e53798a7e3267305f696bf658e418c92e63e0834.zip |
Inlining support in optimizing.
Currently only inlines simple things that don't require an
environment, such as:
- Returning a constant.
- Returning a parameter.
- Returning an arithmetic operation.
Change-Id: Ie844950cb44f69e104774a3cf7a8dea66bc85661
Diffstat (limited to 'compiler/optimizing/register_allocator_test.cc')
-rw-r--r-- | compiler/optimizing/register_allocator_test.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/optimizing/register_allocator_test.cc b/compiler/optimizing/register_allocator_test.cc index 8d75db91d2..f677e840ef 100644 --- a/compiler/optimizing/register_allocator_test.cc +++ b/compiler/optimizing/register_allocator_test.cc @@ -39,9 +39,7 @@ static bool Check(const uint16_t* data) { HGraphBuilder builder(&allocator); const DexFile::CodeItem* item = reinterpret_cast<const DexFile::CodeItem*>(data); HGraph* graph = builder.BuildGraph(*item); - graph->BuildDominatorTree(); - graph->TransformToSSA(); - graph->AnalyzeNaturalLoops(); + graph->TryBuildingSsa(); x86::CodeGeneratorX86 codegen(graph); SsaLivenessAnalysis liveness(*graph, &codegen); liveness.Analyze(); @@ -253,9 +251,7 @@ static HGraph* BuildSSAGraph(const uint16_t* data, ArenaAllocator* allocator) { HGraphBuilder builder(allocator); const DexFile::CodeItem* item = reinterpret_cast<const DexFile::CodeItem*>(data); HGraph* graph = builder.BuildGraph(*item); - graph->BuildDominatorTree(); - graph->TransformToSSA(); - graph->AnalyzeNaturalLoops(); + graph->TryBuildingSsa(); return graph; } |