Improve code generation for vselect on SSE2:
authorNadav Rotem <nadav.rotem@intel.com>
Wed, 19 Oct 2011 20:43:16 +0000 (20:43 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Wed, 19 Oct 2011 20:43:16 +0000 (20:43 +0000)
commit815af82b74fa0901e818f5d16ee418675f399101
tree67f6bd544bc863bbbf7f3193720a3b4016c2b609
parent12ae52767f2d0e4312ba059c0e97ed8beb9777d5
Improve code generation for vselect on SSE2:
When checking the availability of instructions using the TLI, a 'promoted'
instruction IS available. It means that the value is bitcasted to another type
for which there is an operation. The correct check for the availablity of an
instruction is to check if it should be expanded.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142542 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
test/CodeGen/X86/sse2-blend.ll