[llvm] [SelectionDAG] Remove `NoNaNsFPMath` uses (PR #183448)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 05:21:00 PDT 2026
================
@@ -15572,7 +15573,8 @@ SDValue SITargetLowering::performMinMaxCombine(SDNode *N,
(VT == MVT::v2bf16 && Subtarget->hasBF16PackedInsts()) ||
(VT == MVT::v2f16 && Subtarget->hasVOP3PInsts())) &&
Op0.hasOneUse()) {
- if (SDValue Res = performFPMed3ImmCombine(DAG, SDLoc(N), Op0, Op1))
+ if (SDValue Res = performFPMed3ImmCombine(DAG, SDLoc(N), Op0, Op1,
+ N->getFlags().hasNoNaNs()))
----------------
paulwalker-arm wrote:
Rather than the specific `IsKnownNoNaNs` property, would it be better to pass in `getFlags()`? I'm just thinking the function might want to query other properties in the future.
https://github.com/llvm/llvm-project/pull/183448
More information about the llvm-commits
mailing list