Skip to content

Commit 747214e

Browse files
authored
[X86] getFauxShuffleMask - OR(BITCAST(SHUFFLE()),BITCAST(SHUFFLE())) patterns should return bitcasted source values (llvm#134993)
Noticed while investigating llvm#133947 regressions - if we peek through bitcasts we can lose track of oneuse/combined nodes in shuffle combining Currently the same codegen as combineX86ShufflesRecursively still peeks through the bitcasts itself, but we will soon handle this consistently as another part of llvm#133947
1 parent 2896bbe commit 747214e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6155,8 +6155,8 @@ static bool getFauxShuffleMask(SDValue N, const APInt &DemandedElts,
61556155
else
61566156
return false;
61576157
}
6158-
Ops.push_back(N0);
6159-
Ops.push_back(N1);
6158+
Ops.push_back(N.getOperand(0));
6159+
Ops.push_back(N.getOperand(1));
61606160
return true;
61616161
}
61626162
case ISD::CONCAT_VECTORS: {

0 commit comments

Comments
 (0)