Teach PHIElimination to handle <undef> operands.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 25 Jun 2012 03:36:12 +0000 (03:36 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 25 Jun 2012 03:36:12 +0000 (03:36 +0000)
commit5213750e27c2f9fd7f5a0884c4a15f3b5e3aa843
treec7d1c0cce80564f03e6c9b642a00bc13ea090125
parent351c8818f2ff89d567094f46c3e220d6501ec3fa
Teach PHIElimination to handle <undef> operands.

When a PHI use is <undef>, don't emit a copy in the predecessor block,
but insert an IMPLICIT_DEF instruction instead. This ensures that
virtual register uses are always jointly dominated by defs, even if some
of them are IMPLICIT_DEF.

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