mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Fix PR2850 and PR2863. Only generate movddup for 128-bit SSE vector shuffles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57210 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3954,6 +3954,7 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) {
|
||||
|
||||
// Canonicalize movddup shuffles.
|
||||
if (V2IsUndef && Subtarget->hasSSE2() &&
|
||||
VT.getSizeInBits() == 128 &&
|
||||
X86::isMOVDDUPMask(PermMask.getNode()))
|
||||
return CanonicalizeMovddup(Op, V1, PermMask, DAG, Subtarget->hasSSE3());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user