@@ -357,9 +357,9 @@ Instruction *InstCombinerImpl::simplifyMaskedStore(IntrinsicInst &II) {
357
357
358
358
// Use masked off lanes to simplify operands via SimplifyDemandedVectorElts
359
359
APInt DemandedElts = possiblyDemandedEltsInMask (ConstMask);
360
- APInt UndefElts (DemandedElts.getBitWidth (), 0 );
361
- if (Value *V =
362
- SimplifyDemandedVectorElts (II. getOperand ( 0 ), DemandedElts, UndefElts ))
360
+ APInt PoisonElts (DemandedElts.getBitWidth (), 0 );
361
+ if (Value *V = SimplifyDemandedVectorElts (II. getOperand ( 0 ), DemandedElts,
362
+ PoisonElts ))
363
363
return replaceOperand (II, 0 , V);
364
364
365
365
return nullptr ;
@@ -439,12 +439,12 @@ Instruction *InstCombinerImpl::simplifyMaskedScatter(IntrinsicInst &II) {
439
439
440
440
// Use masked off lanes to simplify operands via SimplifyDemandedVectorElts
441
441
APInt DemandedElts = possiblyDemandedEltsInMask (ConstMask);
442
- APInt UndefElts (DemandedElts.getBitWidth (), 0 );
443
- if (Value *V =
444
- SimplifyDemandedVectorElts (II. getOperand ( 0 ), DemandedElts, UndefElts ))
442
+ APInt PoisonElts (DemandedElts.getBitWidth (), 0 );
443
+ if (Value *V = SimplifyDemandedVectorElts (II. getOperand ( 0 ), DemandedElts,
444
+ PoisonElts ))
445
445
return replaceOperand (II, 0 , V);
446
- if (Value *V =
447
- SimplifyDemandedVectorElts (II. getOperand ( 1 ), DemandedElts, UndefElts ))
446
+ if (Value *V = SimplifyDemandedVectorElts (II. getOperand ( 1 ), DemandedElts,
447
+ PoisonElts ))
448
448
return replaceOperand (II, 1 , V);
449
449
450
450
return nullptr ;
@@ -1526,9 +1526,9 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
1526
1526
// support.
1527
1527
if (auto *IIFVTy = dyn_cast<FixedVectorType>(II->getType ())) {
1528
1528
auto VWidth = IIFVTy->getNumElements ();
1529
- APInt UndefElts (VWidth, 0 );
1529
+ APInt PoisonElts (VWidth, 0 );
1530
1530
APInt AllOnesEltMask (APInt::getAllOnes (VWidth));
1531
- if (Value *V = SimplifyDemandedVectorElts (II, AllOnesEltMask, UndefElts )) {
1531
+ if (Value *V = SimplifyDemandedVectorElts (II, AllOnesEltMask, PoisonElts )) {
1532
1532
if (V != II)
1533
1533
return replaceInstUsesWith (*II, V);
1534
1534
return II;
0 commit comments