[llvm] [AMDGPU] Quiet signaling NaN when constant-folding CLAMP (PR #207902)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 7 00:04:01 PDT 2026
================
@@ -18503,6 +18503,9 @@ SDValue SITargetLowering::performClampCombine(SDNode *N,
if (F > One)
return DCI.DAG.getConstantFP(One, SDLoc(N), N->getValueType(0));
+ if (F.isSignaling())
----------------
arsenm wrote:
Maybe should generalize to canonicalize
https://github.com/llvm/llvm-project/pull/207902
More information about the llvm-commits
mailing list