Skip to content

Commit 6a94bd1

Browse files
authored
[PPC] Change placeholder from undef to poison (llvm#134552)
Call `insertelement` on a `poison` value instead of `undef`.
1 parent 2ac11da commit 6a94bd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ PPCTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
126126
IC.Builder.CreateBitCast(II.getArgOperand(0), Mask->getType());
127127
Value *Op1 =
128128
IC.Builder.CreateBitCast(II.getArgOperand(1), Mask->getType());
129-
Value *Result = UndefValue::get(Op0->getType());
129+
Value *Result = PoisonValue::get(Op0->getType());
130130

131131
// Only extract each element once.
132132
Value *ExtractedElts[32];

0 commit comments

Comments
 (0)