[PATCH] D55869: Convert some ObjC retain/release msgSends to runtime calls

Pete Cooper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 18 16:52:53 PST 2018


pete created this revision.
pete added reviewers: rjmccall, ahatanak, erik.pilkington.
Herald added a subscriber: cfe-commits.

It is faster to directly call the ObjC runtime for methods such as retain/release instead of sending a message to those functions.

This is an extension of the work we already do to convert alloc message sends to objc_alloc calls.


Repository:
  rC Clang

https://reviews.llvm.org/D55869

Files:
  include/clang/Basic/ObjCRuntime.h
  lib/CodeGen/CGObjC.cpp
  lib/CodeGen/CodeGenFunction.h
  lib/CodeGen/CodeGenModule.h
  test/CodeGenObjC/convert-messages-to-runtime-calls.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55869.178815.patch
Type: text/x-patch
Size: 10295 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181219/e4aaf5b7/attachment.bin>


More information about the cfe-commits mailing list