[PATCH] D68611: [IRGen] Emit lifetime markers for temporary struct allocas
Francis Visoiu Mistrih via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 7 16:53:27 PDT 2019
thegameg created this revision.
thegameg added reviewers: rjmccall, t.p.northover, efriedma, rnk.
When passing arguments using temporary allocas, we need to add the appropriate lifetime markers so that the stack coloring passes can re-use the stack space.
This patch keeps track of all the lifetime.start calls emited before the codegened call, and adds the corresponding lifetime.end calls after the call.
https://reviews.llvm.org/D68611
Files:
clang/lib/CodeGen/CGCall.cpp
clang/test/CodeGen/aarch64-byval-temp.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68611.223697.patch
Type: text/x-patch
Size: 7490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191007/ac668eba/attachment.bin>
More information about the llvm-commits
mailing list