[llvm] DAG: Assert fcmp uno runtime calls are boolean values (PR #142898)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 13:00:56 PDT 2025
================
@@ -429,8 +429,20 @@ void TargetLowering::softenSetCCOperands(SelectionDAG &DAG, EVT VT,
// Update Chain.
Chain = Call.second;
} else {
+ assert(CCCode == (ShouldInvertCC ? ISD::SETEQ : ISD::SETNE) &&
+ "unordered call should be simple boolean");
----------------
efriedma-quic wrote:
You're adding an assertion that CCCode should be SETEQ or SETNE... then you're changing the condition code for RTLIB::UO_F32 to SETCC_INVALID, which then goes through here? I must be missing something...
https://github.com/llvm/llvm-project/pull/142898
More information about the llvm-commits
mailing list