Optimize the sequence blend(sign_extend(x)) to blend(shl(x)) since SSE blend instruct...
authorNadav Rotem <nadav.rotem@intel.com>
Mon, 2 Jan 2012 08:05:46 +0000 (08:05 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Mon, 2 Jan 2012 08:05:46 +0000 (08:05 +0000)
commita46f35d3d65425af5eaaaf906fca240a33d6c362
treecbe1de0c9521b4a7bef38d6733365f4c72ab619b
parent47f79bb58e42f1a08a7f388b8b1596ded7d49bbb
Optimize the sequence blend(sign_extend(x)) to blend(shl(x)) since SSE blend instructions only look at the highest bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147426 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/2011-12-28-vselecti8.ll
test/CodeGen/X86/sext-blend.ll [new file with mode: 0644]
test/CodeGen/X86/sse2-blend.ll
test/CodeGen/X86/sse41-blend.ll