Skip to content

Commit 1d4f617

Browse files
authored
Extend AllocBoxToStack to handle apply (#31974)
* Don't always give shared linkage to spl functions private functions on specialization were being given shared linkage. Use swift::getSpecializeLinkage to correctly get the linkage for the specialized function based on the linkage of the original function. * Extend AllocBoxToStack to handle apply AllocBoxToStack analyzes the uses of boxes and promotes them to stack if it is safe to do so. Currently the analysis is limited to only a few known users including partial_apply. With this change, the pass also analyzes apply users, where the callee is a local private function. The analysis is recursive and bound by a threshold. Fixes rdar://59070139
1 parent 865224a commit 1d4f617

File tree

6 files changed

+1077
-115
lines changed

6 files changed

+1077
-115
lines changed

0 commit comments

Comments
 (0)