Run ProcessImplicitDefs on SSA form where it can be much simpler.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 25 Jun 2012 18:12:18 +0000 (18:12 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 25 Jun 2012 18:12:18 +0000 (18:12 +0000)
commit5984d2b31fe3c69e46d2b81439a8c3ef0bdf9a91
tree0c1299a629c7b9de2201f9d510748408d5c5af6a
parent3769fe149bb47dfdaa8ac39b7a4c26cf98ec503e
Run ProcessImplicitDefs on SSA form where it can be much simpler.

Implicitly defined virtual registers can simply have the <undef> bit set
on all uses, and copies can be turned into implicit defs recursively.

Physical registers are a bit trickier. We handle the common case where a
physreg def is used by a nearby instruction in the same basic block. For
more complicated cases, just leave the IMPLICIT_DEF instruction in.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159149 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/Passes.cpp
lib/CodeGen/ProcessImplicitDefs.cpp
test/CodeGen/X86/avx-shuffle.ll