[llvm] `llvm.canonicalize` in common code (PR #142105)

Dominik Steenken via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 07:31:36 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
----------------
dominik-steenken wrote:

sure

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


More information about the llvm-commits mailing list