From 356bd28feeedeb24e1f458492fdc5ecaef39c1eb Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 1 Mar 2017 12:01:11 +0000 Subject: Introduce EnvUsePosition for liveness analysis. Normal and environment use positions are held in separate lists and the code never mixes them together. By using two separate classes, we can reduce complexity and avoid an unnecesary data member, reducing the memory usage. Tracking allocations for a certain big app, the peak arena memory usage is before: MEM: used: 79245960, ... SsaLiveness 31221600 after: MEM: used: 78754024, ... SsaLiveness 30729664 Test: testrunner.py --host Bug: 34053922 Change-Id: I02d3c9f564bbe3b1da0e03c33cf7c0f810f235dc --- compiler/Android.bp | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/Android.bp') diff --git a/compiler/Android.bp b/compiler/Android.bp index c59e36b597..d57f301ff9 100644 --- a/compiler/Android.bp +++ b/compiler/Android.bp @@ -351,6 +351,7 @@ art_cc_test { "optimizing/pretty_printer_test.cc", "optimizing/reference_type_propagation_test.cc", "optimizing/side_effects_test.cc", + "optimizing/ssa_liveness_analysis_test.cc", "optimizing/ssa_test.cc", "optimizing/stack_map_test.cc", "optimizing/suspend_check_test.cc", -- cgit v1.2.3-59-g8ed1b