[X86][Codegen] PR51615: don't replace wide volatile load with narrow broadcast-from...
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 26 Aug 2021 15:40:00 +0000 (18:40 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 26 Aug 2021 15:46:49 +0000 (18:46 +0300)
commita8125bf4a869fee02ebc49e0699688f768bfde2b
treef0dde55169d256a4b321cbf6a415d649bb41b8b0
parent0bcfd4cbac66e6216022f51feb38236dc07e333f
[X86][Codegen] PR51615: don't replace wide volatile load with narrow broadcast-from-memory

Even though https://bugs.llvm.org/show_bug.cgi?id=51615
appears to be introduced by D105390, the fix lies here.

We can not replace a wide volatile load with a broadcast-from-memory,
because that would narrow the load, which isn't legal for volatiles.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D108757
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/pr51615.ll [new file with mode: 0644]