[X86] Directly form VBROADCAST_LOAD in lowerShuffleAsBroadcast on AVX targets.
authorCraig Topper <craig.topper@gmail.com>
Wed, 4 Mar 2020 07:45:59 +0000 (23:45 -0800)
committerCraig Topper <craig.topper@gmail.com>
Wed, 4 Mar 2020 17:11:57 +0000 (09:11 -0800)
commit06de4264260d24761e3d1e6ab815db0370b1d314
tree15e9ef7bef390e1a38f2db12edf66fdca97ad7aa
parentf24d90c0a64645a5b82b397a571d6a65f87b40ed
[X86] Directly form VBROADCAST_LOAD in lowerShuffleAsBroadcast on AVX targets.

If we would emit a VBROADCAST node, we can instead directly emit
a VBROADCAST_LOAD. This allows us to get rid of the special case
to use an f64 load on 32-bit targets for vXi64.

I believe there is more cleanup we can do later in this function,
but I'll do that in follow ups.
llvm/lib/Target/X86/X86ISelLowering.cpp