[llvm] 6a94bd1 - [PPC] Change placeholder from `undef` to `poison` (#134552)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 7 13:56:05 PDT 2025
Author: Pedro Lobo
Date: 2025-04-07T21:56:02+01:00
New Revision: 6a94bd136db9393b50bcd99f183e61c2e6e873a9
URL: https://github.com/llvm/llvm-project/commit/6a94bd136db9393b50bcd99f183e61c2e6e873a9
DIFF: https://github.com/llvm/llvm-project/commit/6a94bd136db9393b50bcd99f183e61c2e6e873a9.diff
LOG: [PPC] Change placeholder from `undef` to `poison` (#134552)
Call `insertelement` on a `poison` value instead of `undef`.
Added:
Modified:
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
index 2a5af3e50af26..3a4c2fcad8c83 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
@@ -126,7 +126,7 @@ PPCTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
IC.Builder.CreateBitCast(II.getArgOperand(0), Mask->getType());
Value *Op1 =
IC.Builder.CreateBitCast(II.getArgOperand(1), Mask->getType());
- Value *Result = UndefValue::get(Op0->getType());
+ Value *Result = PoisonValue::get(Op0->getType());
// Only extract each element once.
Value *ExtractedElts[32];
More information about the llvm-commits
mailing list