We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c640d1 commit 530d4c9Copy full SHA for 530d4c9
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
@@ -1319,7 +1319,7 @@ static Instruction *foldInsEltIntoSplat(InsertElementInst &InsElt) {
1319
static Instruction *foldInsEltIntoIdentityShuffle(InsertElementInst &InsElt) {
1320
// Check if the vector operand of this insert is an identity shuffle.
1321
auto *Shuf = dyn_cast<ShuffleVectorInst>(InsElt.getOperand(0));
1322
- if (!Shuf || !match(Shuf->getOperand(1), m_Undef()) ||
+ if (!Shuf || !match(Shuf->getOperand(1), m_Poison()) ||
1323
!(Shuf->isIdentityWithExtract() || Shuf->isIdentityWithPadding()))
1324
return nullptr;
1325
0 commit comments