OSDN Git Service

ART: Rediscover loops after deleting blocks in DCE
authorDavid Brazdil <dbrazdil@google.com>
Thu, 7 May 2015 08:59:30 +0000 (09:59 +0100)
committerDavid Brazdil <dbrazdil@google.com>
Tue, 12 May 2015 10:37:53 +0000 (11:37 +0100)
commita4b8c21dae70ae34aee13628632c39a675c06022
tree3a72a4fcb64d61b7913f6ee3599a46b3248437b6
parentfaf935eb3a8565de98d9ec1f79c8c43c5c6eb2a7
ART: Rediscover loops after deleting blocks in DCE

The way DCE currently updates loop information does not cover all
cases. This patch removes the logic, resets loop information of live
blocks to pre-SSA state and reanalyzes the affected loops.

Change-Id: I0b996a70235b95a8db0de9a23a03f71db57a21b8
compiler/optimizing/dead_code_elimination.cc
compiler/optimizing/dead_code_elimination.h
compiler/optimizing/graph_visualizer.cc
compiler/optimizing/nodes.cc
compiler/optimizing/nodes.h
compiler/optimizing/optimizing_compiler.cc
test/485-checker-dce-loop-update/expected.txt [new file with mode: 0644]
test/485-checker-dce-loop-update/info.txt [new file with mode: 0644]
test/485-checker-dce-loop-update/smali/TestCase.smali [new file with mode: 0644]
test/485-checker-dce-loop-update/src/Main.java [new file with mode: 0644]