[PATCH] D52440: Emit lifetime markers for temporary function parameter aggregates

2018-11-16 Thread Ian Tessier via Phabricator via cfe-commits
itessier added a comment. Thanks for the detailed info! I will try to get something out when I get some free cycles. Repository: rC Clang https://reviews.llvm.org/D52440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D52440: Emit lifetime markers for temporary function parameter aggregates

2018-11-14 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. In https://reviews.llvm.org/D52440#1298816, @itessier wrote: > > This is problematic because we're not necessarily in a scope that usefully > > limits the duration of cleanups — we don't push full-expression scopes when > > emitting an arbitrary statement. Probably we

[PATCH] D52440: Emit lifetime markers for temporary function parameter aggregates

2018-11-14 Thread Ian Tessier via Phabricator via cfe-commits
itessier added a comment. > This is problematic because we're not necessarily in a scope that usefully > limits the duration of cleanups — we don't push full-expression scopes when > emitting an arbitrary statement. Probably we should, but we don't. > If you'd like to take a look at solving

[PATCH] D52440: Emit lifetime markers for temporary function parameter aggregates

2018-09-25 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:176 + pushFullExprCleanup(NormalEHLifetimeMarker, + Slot.getAddress(), Size); +} This is problematic because we're not necessarily in a scope

[PATCH] D52440: Emit lifetime markers for temporary function parameter aggregates

2018-09-24 Thread Ian Tessier via Phabricator via cfe-commits
itessier created this revision. itessier added a reviewer: rjmccall. Herald added a subscriber: cfe-commits. Clang is not emitting lifetime markers for temporary function parameters, so more stack space is potentially being allocated than necessary. A new parameter is added to the CreateAggTemp