[PATCH] D49303: [CodeGen][ObjC] Treat non-escaping blocks as global blocks to make copy/dispose a no-op
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 13 09:36:08 PDT 2018
ahatanak created this revision.
ahatanak added a reviewer: rjmccall.
Herald added a subscriber: dexonsmith.
Copying or disposing of a non-escaping block can be a no-op. A non-escaping block on the stack doesn't have to be copied to the heap as we know it won't be called after its lifetime ends.
rdar://problem/39352313
Repository:
rC Clang
https://reviews.llvm.org/D49303
Files:
docs/Block-ABI-Apple.rst
lib/CodeGen/CGBlocks.cpp
lib/CodeGen/CGBlocks.h
test/CodeGenObjC/noescape.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49303.155405.patch
Type: text/x-patch
Size: 5140 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180713/1b186aa6/attachment.bin>
More information about the cfe-commits
mailing list