mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Fix a bogus splat xform:
shuffle <undef, undef, x, undef>, <undef, undef, undef, undef>, <2, 2, 2, 2> != <undef, undef, x, undef> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42111 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4093,8 +4093,7 @@ SDOperand DAGCombiner::visitVECTOR_SHUFFLE(SDNode *N) {
|
||||
if (!Base.Val)
|
||||
return N0;
|
||||
for (unsigned i = 0; i != NumElems; ++i) {
|
||||
if (V->getOperand(i).getOpcode() != ISD::UNDEF &&
|
||||
V->getOperand(i) != Base) {
|
||||
if (V->getOperand(i) != Base) {
|
||||
AllSame = false;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user