PR9446: RecursivelyDeleteTriviallyDeadInstructions can delete the instruction
authorEli Friedman <eli.friedman@gmail.com>
Sat, 2 Apr 2011 22:45:17 +0000 (22:45 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 2 Apr 2011 22:45:17 +0000 (22:45 +0000)
commit71ad2c9eda710bc26ec1621a9afefad11dd7fad2
tree9854a19c8acd95da320530173701c38eb6b5cfac
parent6bdd261df972b5e70e4242721ab16b57c6fe3d1f
PR9446: RecursivelyDeleteTriviallyDeadInstructions can delete the instruction
after the given instruction; make sure to handle that case correctly.
(It's difficult to trigger; the included testcase involves a dead
block, but I don't think that's a requirement.)

While I'm here, get rid of the unnecessary warning about
SimplifyInstructionsInBlock, since it should work correctly as far as I know.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128782 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/Local.h
lib/Transforms/Utils/Local.cpp
test/Transforms/JumpThreading/2011-04-02-SimplifyDeadBlock.ll [new file with mode: 0644]