[llvm] [Mips] Fix wrong qNaN encoding when -mnan=legacy (PR #153777)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 25 01:00:04 PDT 2025
================
@@ -4433,6 +4433,10 @@ class LLVM_ABI TargetLowering : public TargetLoweringBase {
///
virtual SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const;
+ /// For targets which need get QNaN by assigning a certain value to the
+ /// parameter payload.
+ virtual APFloat getNaNValue(EVT VT) const;
----------------
yingopq wrote:
OK, thanks!
I would delete this hook and make this code only in the backend.
https://github.com/llvm/llvm-project/pull/153777
More information about the llvm-commits
mailing list