Fix 3113: If we have a dead cyclic PHI, replace the whole thing
authorChris Lattner <sabre@nondot.org>
Mon, 24 Nov 2008 19:25:36 +0000 (19:25 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 Nov 2008 19:25:36 +0000 (19:25 +0000)
commit47f5751c8092f96b989318faab991b23e558babf
treed87265316914ac00ffdf3e25dd79347a44c21eb9
parent41ea7e7eb3a6a269f2bfed0bdc191ea046d18e5e
Fix 3113: If we have a dead cyclic PHI, replace the whole thing
with an undef.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59972 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
test/Transforms/CodeGenPrepare/2008-11-24-RAUW-Self.ll [new file with mode: 0644]
test/Transforms/CodeGenPrepare/dg.exp [new file with mode: 0644]