This is an archive of the discontinued LLVM Phabricator instance.

Do not generate a __morestack prologue, for functions with a stack of size zero
ClosedPublic

Authored by Florob on May 21 2014, 7:51 PM.

Details

Summary

When segmented stacks are used, this omits the usual __morestack prologue on functions that do not perform any stack allocations.
This ought to be valid since these functions never need to grow the stack.
This is particularly beneficial to small functions, where the prologue would otherwise outweigh the actual code.

Diff Detail

Event Timeline

Florob updated this revision to Diff 9675.May 21 2014, 7:51 PM
Florob retitled this revision from to Do not generate a __morestack prologue, for functions with a stack of size zero.
Florob updated this object.
Florob edited the test plan for this revision. (Show Details)
Florob added a reviewer: nadav.
Florob added a subscriber: Unknown Object (MLST).
nadav edited edge metadata.May 21 2014, 9:40 PM

Hi Florian,

I am not that familiar with this code. Tim, can you please review this patch?

Thanks,
Nadav

t.p.northover accepted this revision.May 21 2014, 11:48 PM
t.p.northover added a reviewer: t.p.northover.
t.p.northover added a subscriber: t.p.northover.

Hi Florian,

This looks good & safe to me, from what I understand of segmented stacks.

Cheers.

Tim.

This revision is now accepted and ready to land.May 21 2014, 11:48 PM

Hi Tim,

Thank you for reviewing this change.
As this is my first time going through this process, I'm admittedly not sure what the next step towards getting this committed is.
Is it common to explicitly ask someone with commit access to do the commit?

Regards,
Florian

Is it common to explicitly ask someone with commit access to do the commit?

Yep, that's what most people do at first. I've committed it as r209436.

Cheers.

Tim.

Florob closed this revision.May 22 2014, 8:16 AM