This is an archive of the discontinued LLVM Phabricator instance.

[X86] Insure split-stack prolog check is retained for sibling calls
ClosedPublic

Authored by thanm on Jun 21 2018, 10:24 AM.

Details

Summary

If a routine with no stack frame makes a sibling call, we need to
preserve the stack space check even if the local stack frame is empty,
since the call target could be a "no-split" function (in which case
the linker needs to be able to fix up the prolog sequence in order to
switch to a larger stack).

This fixes PR37807.

Diff Detail

Repository
rL LLVM

Event Timeline

thanm created this revision.Jun 21 2018, 10:24 AM
cherry accepted this revision.Jun 21 2018, 10:46 AM

LGTM. Thanks.

This revision is now accepted and ready to land.Jun 21 2018, 10:46 AM
thanm added a comment.Jun 25 2018, 7:10 AM

If there are no other comments or concerns on this patch, I plan to submit it tomorrow. Thanks -NM.

thanm updated this revision to Diff 152688.Jun 25 2018, 7:12 AM

Update commit message to reflect that this is for both ARM and x86.

This revision was automatically updated to reflect the committed changes.