This is an archive of the discontinued LLVM Phabricator instance.

[X86] [split-stack] Add an option to allocate extra space for stack split functions
AbandonedPublic

Authored by ChuanqiXu on Mar 16 2021, 2:29 AM.

Details

Summary

As the title describes, this patch add an option to allocate extra space for stack split functions. And if user specify extra spaces, then we can loose the constraint about the varargs of split-stack functions.

This idea comes from a patch from libgcc: patch. In this patch, the author tries to allocate extra space for each stack split functions to avoid frequent allocations. Then in the following reply: reply, the reviewer suggests it could be a good idea to make it as compiler option. So I think it is a good idea to add it in clang.

Test-Plan: check-all

Diff Detail

Unit TestsFailed

Event Timeline

ChuanqiXu created this revision.Mar 16 2021, 2:29 AM
ChuanqiXu requested review of this revision.Mar 16 2021, 2:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2021, 2:29 AM
ChuanqiXu updated this revision to Diff 330938.Mar 16 2021, 4:32 AM

fix unit-tests.

ChuanqiXu abandoned this revision.Nov 15 2021, 2:24 AM