RecursivelyDeleteTriviallyDeadInstructions() could remove
authorGerolf Hoflehner <ghoflehner@apple.com>
Sat, 26 Apr 2014 05:58:11 +0000 (05:58 +0000)
committerGerolf Hoflehner <ghoflehner@apple.com>
Sat, 26 Apr 2014 05:58:11 +0000 (05:58 +0000)
commitb79f1fe0847d11751a2bb47cb388ee8b4e53003b
tree7b0c6b330adc38dd949f299e837eeb3a28c9f2ac
parent67a1d85141f810a3c5b148672e72b4394bcf7a93
RecursivelyDeleteTriviallyDeadInstructions() could remove
more than 1 instruction. The caller need to be aware of this
and adjust instruction iterators accordingly.

rdar://16679376

Repaired r207302.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207309 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]