[llvm] `llvm.canonicalize` in common code (PR #142105)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 25 06:08:00 PDT 2025
================
@@ -3356,6 +3356,27 @@ 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. It uses
----------------
RKSimon wrote:
can we use `https://llvm.org/docs/LangRef.html#llvm-canonicalize-intrinsic` instead? id### anchors will bitrot
https://github.com/llvm/llvm-project/pull/142105
More information about the llvm-commits
mailing list