Avoid adding PHI arguments for a predecessor that has gone away when a BRCOND was...
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 11 Jan 2010 21:02:33 +0000 (21:02 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 11 Jan 2010 21:02:33 +0000 (21:02 +0000)
commitdd437ba15e00d1a137e0c6e3ca1ff213ed6a2aa0
treea71f8994585aa79eed03ce75688bf47548a009f1
parent7dd6107fcc952758ee63d5784a9e7afa9b6dea93
Avoid adding PHI arguments for a predecessor that has gone away when a BRCOND was constant folded.

This fixes PR5980.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93184 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
test/CodeGen/X86/2010-01-11-ExtraPHIArg.ll [new file with mode: 0644]