[llvm] [InstCombine] Propagate poison pow[i], [us]add, [us]sub and [us]mul (PR #146750)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 4 14:48:39 PDT 2025
================
@@ -6793,6 +6793,9 @@ static Value *simplifyIntrinsic(CallBase *Call, Value *Callee,
Function *F = cast<Function>(Callee);
Intrinsic::ID IID = F->getIntrinsicID();
+ if (IID != Intrinsic::not_intrinsic && intrinsicPropagatesPoison(IID) &&
+ any_of(Args, IsaPred<PoisonValue>))
+ return PoisonValue::get(F->getReturnType());
----------------
badumbatish wrote:
updated title as well as head message, ty!
https://github.com/llvm/llvm-project/pull/146750
More information about the llvm-commits
mailing list