[PATCH] D14737: Convert some ObjC msgSends to runtime calls
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 17 18:57:58 PST 2015
rjmccall added a comment.
In http://reviews.llvm.org/D14737#291481, @stephanemoore wrote:
> I hope that it's not presumptuous of me to inquire but I was wondering if the intent of this patch is to optimize calls to RR methods (and alloc) in non-ARC code? Would I be correct in assuming that clang will already emit direct calls to relevant RR runtime functions when ARC is enabled?
Correct. The patch turns ObjC message sends of -retain, -release, and +alloc into calls to the runtime functions we already use in ARC.
This is largely irrelevant in ARC because it's illegal to write an ObjC message send of -retain or -release. The change to +alloc would still apply, however.
http://reviews.llvm.org/D14737
More information about the cfe-commits
mailing list