fix PR5837 by having SSAUpdate reuse phi nodes for the
authorChris Lattner <sabre@nondot.org>
Mon, 21 Dec 2009 07:16:11 +0000 (07:16 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Dec 2009 07:16:11 +0000 (07:16 +0000)
commit4c1e3da0cdd2fd0df5188dea1988beb8bf6a0dc6
tree3a4c864e429fdf3b6c522dc2233e454fa90e5333
parent6a363782fe4ecba4f0a72c2edf03596004470c4a
fix PR5837 by having SSAUpdate reuse phi nodes for the
'GetValueInMiddleOfBlock' case, instead of inserting
duplicates.

A similar fix is almost certainly needed by the machine-level
SSAUpdate implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91820 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SSAUpdater.cpp
test/Transforms/LoopRotate/phi-duplicate.ll [new file with mode: 0644]