aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/UnreachableBlockElim.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-25 03:36:12 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-25 03:36:12 +0000
commit70ed924e18538f3b793d6e53c901b364932e29df (patch)
tree0d38e31baf24b729816fdb5d7f5f6aa124e26bf2 /llvm/lib/CodeGen/UnreachableBlockElim.cpp
parent6b556f824d77db596e2d8a1fa058764f9a722e0d (diff)
downloadllvm-70ed924e18538f3b793d6e53c901b364932e29df.zip
llvm-70ed924e18538f3b793d6e53c901b364932e29df.tar.gz
llvm-70ed924e18538f3b793d6e53c901b364932e29df.tar.bz2
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. llvm-svn: 159121
Diffstat (limited to 'llvm/lib/CodeGen/UnreachableBlockElim.cpp')
0 files changed, 0 insertions, 0 deletions