Improve LSR's dead-phi detection to handle use-def cycles
authorDan Gohman <gohman@apple.com>
Sun, 22 Jun 2008 20:44:02 +0000 (20:44 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 22 Jun 2008 20:44:02 +0000 (20:44 +0000)
commitcbfe5bbe88f5f2ee03a388585112f7609c8151ad
treefba47b3e6ecbe35531f80415332f1481db30c45a
parent9b78763fce4cb418e7a2e672efb84bac25559b79
Improve LSR's dead-phi detection to handle use-def cycles
with more than two nodes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52617 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/Transforms/LoopStrengthReduce/dead-phi.ll [new file with mode: 0644]