Fix bug in -split-phi-edges.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 14 Nov 2009 00:38:13 +0000 (00:38 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 14 Nov 2009 00:38:13 +0000 (00:38 +0000)
commit3b6ced15108909de2fab0766fc693fe66c48ab68
treec2a3cd7195bc079f344d3505430ec8c170e18f25
parent9aebb61daf4d787aa7dcff9e3caa89bac88e11d1
Fix bug in -split-phi-edges.

When splitting an edge after a machine basic block with fall-through, we
forgot to insert a jump instruction. Fix this by calling updateTerminator() on
the fall-through block when relevant.

Also be more precise in PHIElimination::isLiveIn.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88728 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/PHIElimination.cpp