Skip to content

Commit fecf2a2

Browse files
[fixup] Add a comment how we depend on the implementation of hasReservedCallFrame
1 parent a3072be commit fecf2a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Target/AArch64/AArch64FrameLowering.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,11 @@ bool AArch64FrameLowering::hasFP(const MachineFunction &MF) const {
479479
/// included as part of the stack frame.
480480
bool
481481
AArch64FrameLowering::hasReservedCallFrame(const MachineFunction &MF) const {
482+
// The stack probing code for the dynamically allocated outgoing arguments
483+
// area assumes that the stack is probed at the top - either by the prologue
484+
// code, which issues a probe if `hasVarSizedObjects` return true, or by the
485+
// most recent variable-sized object allocation. Changing the condition here
486+
// may need to be followed up by changes to the probe issuing logic.
482487
return !MF.getFrameInfo().hasVarSizedObjects();
483488
}
484489

0 commit comments

Comments
 (0)