]> granicus.if.org Git - llvm/commit
[X86] If we see an insert of a bitcast into zero vector, canonicalize it to move...
authorCraig Topper <craig.topper@intel.com>
Sun, 8 Oct 2017 01:33:41 +0000 (01:33 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 8 Oct 2017 01:33:41 +0000 (01:33 +0000)
commit0fafb9f9dd4f39073b27c1497b856421dcc2724c
tree329a3d0734653900742c6a97e6665b18b378fbd5
parentecabb5f6bd1f119484ba2afc6ac3511ad43a2ca6
[X86] If we see an insert of a bitcast into zero vector, canonicalize it to move the bitcast to the other side of the insert.

This improves detection of zeroing of upper bits during isel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315161 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrVecCompiler.td
test/CodeGen/X86/sad.ll