Fix two serious LSR bugs.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 7 Jul 2008 19:51:32 +0000 (19:51 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 7 Jul 2008 19:51:32 +0000 (19:51 +0000)
commit1ce75dcbbcb6a67904a23b4ec701d1e994767c7e
tree600e0efd70bf6ebe87e37f0f0cfb5d4b7caf5ad9
parent85e9212fcdd63d8b796d09c87f99eae5153a6c8a
Fix two serious LSR bugs.
1. LSR runOnLoop is always returning false regardless if any transformation is made.
2. AddUsersIfInteresting can create new instructions that are added to DeadInsts. But there is a later early exit which prevents them from being freed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53193 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/2008-07-07-DanglingDeadInsts.ll [new file with mode: 0644]