[Constant Hoisting] Erase dead cast instructions.
authorJuergen Ributzka <juergen@apple.com>
Sat, 22 Mar 2014 01:49:30 +0000 (01:49 +0000)
committerJuergen Ributzka <juergen@apple.com>
Sat, 22 Mar 2014 01:49:30 +0000 (01:49 +0000)
commit62f4b48fc1d33a5392dc5ed5fc29de05bd7a0e25
tree04dd643295893265c98568a5ac4e6c8cee6c5702
parent5cfc91c9a524efb027e6a639ef69fd0ca8911389
[Constant Hoisting] Erase dead cast instructions.

The cleanup code that removes dead cast instructions only removed them from the
basic block, but didn't delete them. This fix erases them now too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204538 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ConstantHoisting.cpp