When a value is used multiple times within a single PHI, instructions
authorDan Gohman <gohman@apple.com>
Sat, 27 Jun 2009 05:16:57 +0000 (05:16 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 27 Jun 2009 05:16:57 +0000 (05:16 +0000)
commitde53dc03f5c1549f3176e979bbeeac965dfa5cbc
tree8884c3e980dc1c704244ba6a027d5ad4f080cd57
parent553e571b436ae27cc8b322be6feecd357651b617
When a value is used multiple times within a single PHI, instructions
inserted to replace that value must dominate all of of the basic
blocks associated with the uses of the value in the PHI, not just
one of them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74376 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll [new file with mode: 0644]