OSDN Git Service

More store/allocation elimination for singletons in case of loops
authorMingyao Yang <mingyao@google.com>
Fri, 14 Oct 2016 23:26:08 +0000 (16:26 -0700)
committerMingyao Yang <mingyao@google.com>
Mon, 17 Oct 2016 19:20:08 +0000 (12:20 -0700)
commit0a845200354f5dc3a3344c35823d2614cd5850ef
tree1c0d779c5b90f58e7088773434cc35d7eff6ab39
parentc25dfeab1a66c942ae658fc7cd367f7c1ac502a1
More store/allocation elimination for singletons in case of loops

For a store into a singleton's location, if it happens inside a loop, it
means the singleton's location value may be killed by loop side effects.
However if the singleton is defined inside that loop, that loop should
be skipped since its loop side effects kill values at loop header where
the singleton's location doesn't exist yet.

Test: test-art-host

Bug: 31716107
Change-Id: Iae2494ea93295977f90d1463ee136a7e2e09ba9b
compiler/optimizing/load_store_elimination.cc
test/530-checker-lse/src/Main.java