mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
This is the correct fix for PR1427. This fixes mmx-shuffle.ll and doesn't
cause other regressions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37160 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f840202953
commit
07c70cd866
@ -2675,7 +2675,8 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDOperand Op, SelectionDAG &DAG) {
|
||||
return Op;
|
||||
}
|
||||
|
||||
if (X86::isSHUFPMask(PermMask.Val))
|
||||
if (X86::isSHUFPMask(PermMask.Val) &&
|
||||
MVT::getSizeInBits(VT) != 64) // Don't do this for MMX.
|
||||
return Op;
|
||||
|
||||
// Handle v8i16 shuffle high / low shuffle node pair.
|
||||
@ -2712,7 +2713,9 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDOperand Op, SelectionDAG &DAG) {
|
||||
}
|
||||
}
|
||||
|
||||
if (NumElems == 4) {
|
||||
if (NumElems == 4 &&
|
||||
// Don't do this for MMX.
|
||||
MVT::getSizeInBits(VT) != 64) {
|
||||
MVT::ValueType MaskVT = PermMask.getValueType();
|
||||
MVT::ValueType MaskEVT = MVT::getVectorBaseType(MaskVT);
|
||||
SmallVector<std::pair<int, int>, 8> Locs;
|
||||
|
Loading…
Reference in New Issue
Block a user