Skip to content

Commit 7b86938

Browse files
committed
Update comment
1 parent 89153cf commit 7b86938

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,9 +2518,9 @@ bool SelectionDAG::expandMultipleResultFPLibCall(
25182518
SDValue StoreValue = ST->getValue();
25192519
unsigned ResNo = StoreValue.getResNo();
25202520
Type *StoreType = StoreValue.getValueType().getTypeForEVT(Ctx);
2521-
// If the pointer value does not come from the IR, it could come from ABI
2522-
// lowering and may alias with the arguments of the library call if they are
2523-
// passed via the stack.
2521+
// Limit this fold to IR pointers. Stores to areas such as the stack may be
2522+
// part of the setup for a call, which, if folded, could result in nested
2523+
// call sequences.
25242524
const Value *PointerValue =
25252525
dyn_cast_or_null<const Value *>(ST->getPointerInfo().V);
25262526
if (!PointerValue || CallRetResNo == ResNo || !ST->isSimple() ||

0 commit comments

Comments
 (0)