Skip to content

Commit db9e9ea

Browse files
committed
[IR] Generate poison for all-poison scalable shufflevector mask
Ultimately doesn't matter because the bitcode reader interprets undef and poison interchangeably in this context.
1 parent b012ab0 commit db9e9ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/Instructions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@ Constant *ShuffleVectorInst::convertShuffleMaskForBitcode(ArrayRef<int> Mask,
18221822
Type *VecTy = VectorType::get(Int32Ty, Mask.size(), true);
18231823
if (Mask[0] == 0)
18241824
return Constant::getNullValue(VecTy);
1825-
return UndefValue::get(VecTy);
1825+
return PoisonValue::get(VecTy);
18261826
}
18271827
SmallVector<Constant *, 16> MaskConst;
18281828
for (int Elem : Mask) {

0 commit comments

Comments
 (0)