mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-28 06:35:49 +00:00
Revert patch for PR1427. It breaks almost all vector tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37159 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ccde4cb8ab
commit
f840202953
@ -1614,13 +1614,6 @@ bool X86::isPSHUFLWMask(SDNode *N) {
|
||||
static bool isSHUFPMask(const SDOperand *Elems, unsigned NumElems) {
|
||||
if (NumElems != 2 && NumElems != 4) return false;
|
||||
|
||||
// Ensure this is not an mmx shuffle.
|
||||
if (NumElems == 4 && Elems[0].getValueType() == MVT::i16)
|
||||
return false;
|
||||
if (NumElems == 2 && Elems[0].getValueType() == MVT::i32)
|
||||
return false;
|
||||
|
||||
|
||||
unsigned Half = NumElems / 2;
|
||||
for (unsigned i = 0; i < Half; ++i)
|
||||
if (!isUndefOrInRange(Elems[i], 0, NumElems))
|
||||
@ -2719,9 +2712,7 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDOperand Op, SelectionDAG &DAG) {
|
||||
}
|
||||
}
|
||||
|
||||
if (NumElems == 4 &&
|
||||
// Don't do this for MMX.
|
||||
MVT::getSizeInBits(VT) != 64) {
|
||||
if (NumElems == 4) {
|
||||
MVT::ValueType MaskVT = PermMask.getValueType();
|
||||
MVT::ValueType MaskEVT = MVT::getVectorBaseType(MaskVT);
|
||||
SmallVector<std::pair<int, int>, 8> Locs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user