[llvm] [SDAG] Allow folding stack slots into sincos/frexp in more cases (PR #118117)
Sam Tebbs via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 16 03:44:41 PST 2024
================
@@ -2515,13 +2550,25 @@ bool SelectionDAG::expandMultipleResultFPLibCall(
SDValue StoreValue = ST->getValue();
unsigned ResNo = StoreValue.getResNo();
Type *StoreType = StoreValue.getValueType().getTypeForEVT(Ctx);
- if (CallRetResNo == ResNo || !ST->isSimple() ||
+ if (
+ // Ensure the store corresponds to an output pointer.
----------------
SamTebbs33 wrote:
Ah of course, looks good to me :+1:
https://github.com/llvm/llvm-project/pull/118117
More information about the llvm-commits
mailing list