[llvm] [SDAG] Allow folding stack slots into sincos/frexp in more cases (PR #118117)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 07:25:33 PST 2024


================
@@ -2474,6 +2474,45 @@ SDValue SelectionDAG::getPartialReduceAdd(SDLoc DL, EVT ReducedTy, SDValue Op1,
   return Subvectors[0];
 }
 
+/// Given a store node \p StoreNode, return true if it is safe to fold that node
+/// into \p FPNode, which expands to a library call with output pointers.
+static bool CanFoldStoreIntoFPLibCall(StoreSDNode *StoreNode, SDNode *FPNode) {
----------------
arsenm wrote:

Start with lowercase. This also has nothing to do with FP libcalls, it's a libcall with one or more out arguments

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


More information about the llvm-commits mailing list