summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-05-11 10:28:58 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-05-11 10:28:58 +0000
commit1fef64214c98280a6fe62bcc1d47934ebcce750b (patch)
treecc423ab71b66aea053346c185b9128327697d11d /llvm/lib/Transforms/InstCombine
parentb7ee689f91b10172690a511a7d5ac6fd35b2a96a (diff)
downloadbcm5719-llvm-1fef64214c98280a6fe62bcc1d47934ebcce750b.tar.gz
bcm5719-llvm-1fef64214c98280a6fe62bcc1d47934ebcce750b.zip
SLPVectorizer: Instead of just performing CSE on dead blocks ignore them completely.
Turns out that there is a very cheap way of testing whether a block is dead, just look it up in the DomTree. We have to do this anyways so just ignore unreachable blocks before sorting by domination. This restores a proper ordering for std::stable_sort when dead code is present. Covered by existing tests & buildbots running in STL debug mode (MSVC). llvm-svn: 208492
Diffstat (limited to 'llvm/lib/Transforms/InstCombine')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud