X86: fold SSE2/AVX2 logical shift by immediate amount into zero vector when possible
authorStephen Lin <stephenwlin@gmail.com>
Fri, 12 Jul 2013 15:31:36 +0000 (15:31 +0000)
committerStephen Lin <stephenwlin@gmail.com>
Fri, 12 Jul 2013 15:31:36 +0000 (15:31 +0000)
commitfff967358b56c4e191089f668b75ae415b5bd992
tree063cb5d8eab7374555fa488f0229a8f123353c9c
parent55ec2218c448ef9e0d09b5534885b6d2a9786a73
X86: fold SSE2/AVX2 logical shift by immediate amount into zero vector when possible

Patch by Andrea Di Biagio

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186165 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx2-vector-shifts.ll [new file with mode: 0644]
test/CodeGen/X86/sse2-vector-shifts.ll [new file with mode: 0644]