File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ Instruction *InstCombinerImpl::visitExtractElementInst(ExtractElementInst &EI) {
546
546
->getNumElements ();
547
547
548
548
if (SrcIdx < 0 )
549
- return replaceInstUsesWith (EI, UndefValue ::get (EI.getType ()));
549
+ return replaceInstUsesWith (EI, PoisonValue ::get (EI.getType ()));
550
550
if (SrcIdx < (int )LHSWidth)
551
551
Src = SVI->getOperand (0 );
552
552
else {
@@ -1480,10 +1480,10 @@ static Instruction *foldConstantInsEltIntoShuffle(InsertElementInst &InsElt) {
1480
1480
}
1481
1481
++ValI;
1482
1482
}
1483
- // Remaining values are filled with 'undef ' values.
1483
+ // Remaining values are filled with 'poison ' values.
1484
1484
for (unsigned I = 0 ; I < NumElts; ++I) {
1485
1485
if (!Values[I]) {
1486
- Values[I] = UndefValue ::get (InsElt.getType ()->getElementType ());
1486
+ Values[I] = PoisonValue ::get (InsElt.getType ()->getElementType ());
1487
1487
Mask[I] = I;
1488
1488
}
1489
1489
}
@@ -1704,7 +1704,7 @@ Instruction *InstCombinerImpl::visitInsertElementInst(InsertElementInst &IE) {
1704
1704
if (LR.first != &IE && LR.second != &IE) {
1705
1705
// We now have a shuffle of LHS, RHS, Mask.
1706
1706
if (LR.second == nullptr )
1707
- LR.second = UndefValue ::get (LR.first ->getType ());
1707
+ LR.second = PoisonValue ::get (LR.first ->getType ());
1708
1708
return new ShuffleVectorInst (LR.first , LR.second , Mask);
1709
1709
}
1710
1710
}
You can’t perform that action at this time.
0 commit comments