Do trivial CSE of dead BBs during codegen preparation.
authorBill Wendling <isanbard@gmail.com>
Sun, 4 Mar 2012 10:46:01 +0000 (10:46 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 4 Mar 2012 10:46:01 +0000 (10:46 +0000)
commite3e394d982a2bd2bc37edb1f8c3492d0382e37a9
treea805dec71b3b79d9fa1ce7fc6432a338ac324dbc
parente4fd907e72a599eddfa7a81eac4366b5b82523e3
Do trivial CSE of dead BBs during codegen preparation.

Some BBs can become dead after codegen preparation. If we delete them here, it
could help enable tail-call optimizations later on.
<rdar://problem/10256573>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152002 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
test/CodeGen/ARM/2011-03-15-LdStMultipleBug.ll
test/CodeGen/ARM/cse-libcalls.ll
test/CodeGen/X86/2011-11-09-FoldImpDefs.ll
test/CodeGen/X86/unreachable-stack-protector.ll