[llvm] [SelectionDAGBuilder] Remove NoNaNsFPMath uses (PR #169904)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 3 04:07:54 PST 2026


================
@@ -2447,6 +2447,26 @@ static bool InBlock(const Value *V, const BasicBlock *BB) {
   return true;
 }
 
+static bool AreFCmpOperandsNonNaN(const Instruction *Inst,
+                                  const SelectionDAG &DAG) {
+  assert(
+      (isa<FCmpInst>(Inst) || isa<ConstrainedFPCmpIntrinsic>(Inst) ||
+       (isa<VPIntrinsic>(Inst) &&
+        dyn_cast<VPIntrinsic>(Inst)->getIntrinsicID() == Intrinsic::vp_fcmp)) &&
----------------
arsenm wrote:

Unchecked dyn_cast 

https://github.com/llvm/llvm-project/pull/169904


More information about the llvm-commits mailing list