aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
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 /clang/lib/Frontend/CompilerInvocation.cpp
parentb7ee689f91b10172690a511a7d5ac6fd35b2a96a (diff)
downloadllvm-1fef64214c98280a6fe62bcc1d47934ebcce750b.zip
llvm-1fef64214c98280a6fe62bcc1d47934ebcce750b.tar.gz
llvm-1fef64214c98280a6fe62bcc1d47934ebcce750b.tar.bz2
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 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions