[PATCH] [CodeGen] Reuse stack space from unused function results

Sergey Dmitrouk sdmitrouk at accesssoftek.com
Wed May 13 07:10:33 PDT 2015


Hi aadg, rnk, rsmith, rjmccall,

Space on stack allocated for unused structures returned by functions was unused
even when it's lifetime didn't intersect with lifetime of any other objects that
could use the same space.

The test added also checks for named and auto objects.  It seems to make sense
to have this all in one place.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9743

Files:
  lib/CodeGen/CGCall.cpp
  test/CodeGenCXX/stack-reuse.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9743.25677.patch
Type: text/x-patch
Size: 5284 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150513/2a3e7a59/attachment.bin>


More information about the cfe-commits mailing list