[PATCH] [CodeGen] Reuse stack space from unused function results (with more accurate unused result detection)

Leny Kholodov leny.kholodov at gmail.com
Tue Jun 2 08:58:09 PDT 2015


Changes:

- Slot.isIgnored() is used for detection of unused result;
- test case 'large_combiner_test()' has been added; it doesn't work with previous patch (http://reviews.llvm.org/D9743) and works now; after codegen this test has no lifetime scope, and clang detects results of internal calls as used.


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10042

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

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10042.26977.patch
Type: text/x-patch
Size: 9837 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150602/1c3826db/attachment.bin>


More information about the cfe-commits mailing list