@@ -125,7 +125,7 @@ static unsigned adjustForEndian(const DataLayout &DL, unsigned VectorWidth,
125
125
// br label %else
126
126
//
127
127
// else: ; preds = %0, %cond.load
128
- // %res.phi.else = phi <16 x i32> [ %5, %cond.load ], [ undef , %0 ]
128
+ // %res.phi.else = phi <16 x i32> [ %5, %cond.load ], [ poison , %0 ]
129
129
// %6 = extractelement <16 x i1> %mask, i32 1
130
130
// br i1 %6, label %cond.load1, label %else2
131
131
//
@@ -386,11 +386,11 @@ static void scalarizeMaskedStore(const DataLayout &DL, CallInst *CI,
386
386
// cond.load:
387
387
// %Ptr0 = extractelement <16 x i32*> %Ptrs, i32 0
388
388
// %Load0 = load i32, i32* %Ptr0, align 4
389
- // %Res0 = insertelement <16 x i32> undef , i32 %Load0, i32 0
389
+ // %Res0 = insertelement <16 x i32> poison , i32 %Load0, i32 0
390
390
// br label %else
391
391
//
392
392
// else:
393
- // %res.phi.else = phi <16 x i32>[%Res0, %cond.load], [undef , %0]
393
+ // %res.phi.else = phi <16 x i32>[%Res0, %cond.load], [poison , %0]
394
394
// %Mask1 = extractelement <16 x i1> %Mask, i32 1
395
395
// br i1 %Mask1, label %cond.load1, label %else2
396
396
//
@@ -645,7 +645,7 @@ static void scalarizeMaskedExpandLoad(const DataLayout &DL, CallInst *CI,
645
645
Value *VResult = PassThru;
646
646
647
647
// Shorten the way if the mask is a vector of constants.
648
- // Create a build_vector pattern, with loads/undefs as necessary and then
648
+ // Create a build_vector pattern, with loads/poisons as necessary and then
649
649
// shuffle blend with the pass through value.
650
650
if (isConstantIntVector (Mask)) {
651
651
unsigned MemIndex = 0 ;
@@ -654,7 +654,7 @@ static void scalarizeMaskedExpandLoad(const DataLayout &DL, CallInst *CI,
654
654
for (unsigned Idx = 0 ; Idx < VectorWidth; ++Idx) {
655
655
Value *InsertElt;
656
656
if (cast<Constant>(Mask)->getAggregateElement (Idx)->isNullValue ()) {
657
- InsertElt = UndefValue ::get (EltTy);
657
+ InsertElt = PoisonValue ::get (EltTy);
658
658
ShuffleMask[Idx] = Idx + VectorWidth;
659
659
} else {
660
660
Value *NewPtr =
0 commit comments