Add incoming value from header only if phi node has any use inside the loop.
authorDevang Patel <dpatel@apple.com>
Mon, 24 Mar 2008 20:16:14 +0000 (20:16 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 24 Mar 2008 20:16:14 +0000 (20:16 +0000)
commit60a12907c309fa6e0ae465ffffef1ca3af8d7992
treec2517b819d9fbc0f32ae5692636c437f6a9f6ef0
parent20b7bda6927a83e7a1e46548ef11daac42928736
Add incoming value from header only if phi node has any use inside the loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48738 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopIndexSplit.cpp
test/Transforms/LoopIndexSplit/2008-03-24-ExitPhi.ll [new file with mode: 0644]