]> granicus.if.org Git - llvm/commit
[X86] Add a combine to recognize when we have two insert subvectors that together...
authorCraig Topper <craig.topper@intel.com>
Mon, 4 Sep 2017 01:13:36 +0000 (01:13 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 4 Sep 2017 01:13:36 +0000 (01:13 +0000)
commit7f04a10c78d63aa3f1a9a51f6467ad664366997e
tree7c124635365ebb0ff702837e3dc9ba1939eb538b
parent4f1ba3dc7d34fecaf5c5c5757578c7591271ef21
[X86] Add a combine to recognize when we have two insert subvectors that together write the whole vector, but the starting vector isn't undef.

In this case we should replace the starting vector with undef.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312462 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/clear_upper_vector_element_bits.ll
test/CodeGen/X86/insertelement-zero.ll