OSDN Git Service

Remove dead blocks for the blocks_ array.
authorNicolas Geoffray <ngeoffray@google.com>
Wed, 15 Apr 2015 17:22:45 +0000 (18:22 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Wed, 15 Apr 2015 20:51:12 +0000 (21:51 +0100)
commitf776b92a0d52bb522043812dacb9c21ac11858e2
tree619ae49853b201fc4ea9d0ac4b113c6226e3c339
parentacf9b7b7616a9b104e6f2146051d8e14d9cb9030
Remove dead blocks for the blocks_ array.

This prevents crashing because of structurally incorrect
blocks. Also we now don't need to remove its instructions.

Test case courtesy of Serguei I Katkov.

Change-Id: Ia3ef9580549fc3546e8cd5f346079b1f0ceb2a61
compiler/optimizing/dominator_test.cc
compiler/optimizing/nodes.cc
compiler/optimizing/nodes.h
test/473-remove-dead-block/expected.txt [new file with mode: 0644]
test/473-remove-dead-block/info.txt [new file with mode: 0644]
test/473-remove-dead-block/src/Main.java [new file with mode: 0644]