[x86] Explicitly lower to a blend early if it is trivial to do so for
authorChandler Carruth <chandlerc@gmail.com>
Sun, 21 Sep 2014 11:40:39 +0000 (11:40 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 21 Sep 2014 11:40:39 +0000 (11:40 +0000)
commitfdaf59e9b1fb5325d73e61427d7f3f5e90a9891a
tree50496ad11d62c697706d774dd78a39670b463ee3
parent29720a4bad5f6ca271843f31cf3f03865ccb73cb
[x86] Explicitly lower to a blend early if it is trivial to do so for
v8f32 shuffles in the new vector shuffle lowering code.

This is very cheap to do and makes it much more clear that anything more
expensive but overlapping with this lowering should be selected
afterward (for example using AVX2's VPERMPS). However, no functionality
changed here as without this code we would fall through to create no-op
shuffles of each input and a blend. =]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218209 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp