[llvm] `__builtin.canonicalize` in common code (PR #142105)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri May 30 02:04:51 PDT 2025
================
@@ -3356,6 +3356,23 @@ bool SelectionDAGLegalize::ExpandNode(SDNode *Node) {
Results.push_back(Op);
break;
}
+ case ISD::FCANONICALIZE: {
+ // This implements llvm.canonicalize.f* by multiplication with 1.0,
+ // as suggested in https://llvm.org/docs/LangRef.html#id2335.
----------------
arsenm wrote:
This should probably elaborate on how this is hacking in strictfp operations in non-strict functions
https://github.com/llvm/llvm-project/pull/142105
More information about the llvm-commits
mailing list