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

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 08:16:52 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) {
----------------
MacDue wrote:

Renamed :+1: 

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


More information about the llvm-commits mailing list