[llvm] [LLVM][CodeGen] Teach SelectionDAG how to expand FREM to a vector math call. (PR #83859)

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 03:19:55 PST 2024


================
@@ -1842,6 +1859,116 @@ void VectorLegalizer::ExpandREM(SDNode *Node,
   Results.push_back(Result);
 }
 
+// Try to expand libm nodes into a call to a vector math. Callers provide the
+// LibFunc equivalent of the passed in Node, which is used to lookup mappings
+// within TargetLibraryInfo. Only simply mappings are considered whereby only
+// matching vector operands are allowed and masked functions are passed an all
+// true vector (i.e. Node cannot be a predicated operation).
----------------
paschalis-mpeis wrote:

nit: Could you kindly rework this sentence?

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


More information about the llvm-commits mailing list