[PATCH] D74094: [IRGen] Emit lifetime intrinsics around temporary aggregate argument allocas

Erik Pilkington via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 5 15:11:31 PST 2020


erik.pilkington created this revision.
erik.pilkington added reviewers: rjmccall, thegameg, rsmith.
Herald added subscribers: ributzka, dexonsmith, jkorous.

These temporaries are only used in the callee, and their memory can be reused after the call is complete.

rdar://58552124


https://reviews.llvm.org/D74094

Files:
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/CodeGen/CGCall.h
  clang/test/CodeGen/lifetime-call-temp.c
  clang/test/CodeGenCXX/stack-reuse-miscompile.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74094.242759.patch
Type: text/x-patch
Size: 6561 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200205/b67b52d3/attachment.bin>


More information about the cfe-commits mailing list