diff options
author | Vladimir Marko <vmarko@google.com> | 2014-07-29 12:04:10 +0100 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2014-07-31 09:57:09 +0100 |
commit | b19955d3c8fbd9588f7e17299e559d02938154b6 (patch) | |
tree | 10113a67776d1bb050115043e47e6970a85103c5 /compiler/dex/frontend.cc | |
parent | 36b111c7d3d635e262114dabde4c26952c7dcbe6 (diff) | |
download | android_art-b19955d3c8fbd9588f7e17299e559d02938154b6.tar.gz android_art-b19955d3c8fbd9588f7e17299e559d02938154b6.tar.bz2 android_art-b19955d3c8fbd9588f7e17299e559d02938154b6.zip |
Reduce time and memory usage of GVN.
Filter out dead sregs in GVN. Reclaim memory after each LVN
in the GVN modification phase.
Bug: 16398693
Change-Id: I8c88c3009663754e1b66c0ef3f62c3b93276e385
Diffstat (limited to 'compiler/dex/frontend.cc')
-rw-r--r-- | compiler/dex/frontend.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/dex/frontend.cc b/compiler/dex/frontend.cc index 51446f6356..11dd182a67 100644 --- a/compiler/dex/frontend.cc +++ b/compiler/dex/frontend.cc @@ -747,7 +747,7 @@ static CompiledMethod* CompileMethod(CompilerDriver& driver, /* Free Arenas from the cu.arena_stack for reuse by the cu.arena in the codegen. */ if (cu.enable_debug & (1 << kDebugShowMemoryUsage)) { - if (cu.arena_stack.PeakBytesAllocated() > 256 * 1024) { + if (cu.arena_stack.PeakBytesAllocated() > 1 * 1024 * 1024) { MemStats stack_stats(cu.arena_stack.GetPeakStats()); LOG(INFO) << method_name << " " << Dumpable<MemStats>(stack_stats); } |