Fix SSAUpdaterImpl's RecordMatchingPHI to record exactly the
authorDan Gohman <gohman@apple.com>
Fri, 3 Feb 2012 01:07:01 +0000 (01:07 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 3 Feb 2012 01:07:01 +0000 (01:07 +0000)
commit16717a7c562d05915c1b30792eef24de5b264cc6
tree45f448dc63eeae17c9194e5ea5d65a76d8dbb577
parent1aee22e0720932a82dd3bf3fc8be804fff6bb89a
Fix SSAUpdaterImpl's RecordMatchingPHI to record exactly the
PHI nodes which were matched, rather than climbing up the
original PHI node's operands to rediscover PHI nodes for
recording, since the PHI nodes found that are not
necessarily part of the matched set.
This fixes rdar://10589171.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149654 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/SSAUpdaterImpl.h
test/Transforms/ScalarRepl/phi-cycle.ll [new file with mode: 0644]