[llvm] [RISCV]: Implemented softening of `FCANONICALIZE` (PR #169234)

Kevin Per via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 3 12:38:30 PST 2025


================
@@ -311,6 +313,26 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_FABS(SDNode *N) {
   return DAG.getNode(ISD::AND, SDLoc(N), NVT, Op, Mask);
 }
 
+SDValue DAGTypeLegalizer::SoftenFloatRes_FCANONICALIZE(SDNode *N) {
----------------
kper wrote:

ah yes, thank you that's much better
you were right, I tried to bend the API to make it work like the other methods :)

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


More information about the llvm-commits mailing list