[X86] Simplify the end of custom type legalization for (v2i32/v4i16/v8i8 (bitcast...
authorCraig Topper <craig.topper@intel.com>
Fri, 12 Oct 2018 22:00:00 +0000 (22:00 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 12 Oct 2018 22:00:00 +0000 (22:00 +0000)
commitc693a23025c1038f6896666e15df864998358ce2
tree017d9e24deadeae0c209051bb5d10a1b81c42bde
parenta8a44f1becf80e1bc40344c05149d2f94223b5dd
[X86] Simplify the end of custom type legalization for (v2i32/v4i16/v8i8 (bitcast (f64))) by just emitting an EXTRACT_SUBVECTOR instead of a BUILD_VECTOR.

Generic legalization should be able to finish legalizing the EXTRACT_SUBVECTOR probably by turning it into a BUILD_VECTOR. But we should emit the simplest sequence.

llvm-svn: 344424
llvm/lib/Target/X86/X86ISelLowering.cpp