OSDN Git Service

Remove jumps over empty blocks.
authorAndrew Scull <ascull@google.com>
Thu, 23 Jul 2015 00:17:02 +0000 (17:17 -0700)
committerAndrew Scull <ascull@google.com>
Thu, 23 Jul 2015 00:17:02 +0000 (17:17 -0700)
commit713278ab2a513b99c1b972ed03876a4c8462552b
tree3fd0441dea28a8d5f4f2b866de4b9e16d76403c6
parent0dab032401107239f48cab3605b1f268891cd14e
Remove jumps over empty blocks.

After contracting a node reorder it as unreachable even if it
hasn't yet been placed.

BUG=
R=jvoung@chromium.org, jvoung, stichnot

Review URL: https://codereview.chromium.org/1246173003.
src/IceCfg.cpp
src/IceCfgNode.cpp
tests_lit/llvm2ice_tests/adv-switch-opt.ll
tests_lit/llvm2ice_tests/branch-opt.ll