RecursivelyDeleteTriviallyDeadInstructions() could remove
authorGerolf Hoflehner <ghoflehner@apple.com>
Sat, 26 Apr 2014 01:19:16 +0000 (01:19 +0000)
committerGerolf Hoflehner <ghoflehner@apple.com>
Sat, 26 Apr 2014 01:19:16 +0000 (01:19 +0000)
commit4c9277bb9fc1399aa0c845c870447ae83cdb2cb1
treeb723dacc83eb65812a1bb56837260d4b1bf2f292
parent9e93e47b7f196893b5779090897210d750aa1c6b
RecursivelyDeleteTriviallyDeadInstructions() could remove
more than 1 instruction. The caller need to be aware of this
and adjust instruction iterators accordingly.

rdar://16679376

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207302 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopInstSimplify.cpp
lib/Transforms/Utils/SimplifyInstructions.cpp
test/Transforms/InstSimplify/dead-code-removal.ll [new file with mode: 0644]