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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to