[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:18:21 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.
----------------
MacDue wrote:
This is a (really) long if condition with multiple cases, I added comments to make the checks a little easier to follow.
https://github.com/llvm/llvm-project/pull/118117
More information about the llvm-commits
mailing list