LoopIdiom: Use utility functions.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 7 Feb 2015 21:37:08 +0000 (21:37 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 7 Feb 2015 21:37:08 +0000 (21:37 +0000)
commitfd3cd51a3a884969b30dee728cf0c1322dc4e9d1
tree09f529d53701830cec9a6f8973d89acfe44149c9
parent128482cfc46721f54f08c8c7b910c4e4651c89cd
LoopIdiom: Use utility functions.

The only difference between deleteIfDeadInstruction and
RecursivelyDeleteTriviallyDeadInstructions is that the former also
manually invalidates SCEV. That's unnecessary because SCEV automatically
gets informed when an instruction is deleted via a ValueHandle. NFC.

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