[all-commits] [llvm/llvm-project] 874b0a: [CodeGen] Mark calls to objc_autorelease as tail

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Tue Nov 10 13:48:56 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 874b0a0b9db93f5d3350ffe6b5efda2d908415d0
      https://github.com/llvm/llvm-project/commit/874b0a0b9db93f5d3350ffe6b5efda2d908415d0
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   2020-11-10 (Tue, 10 Nov 2020)

  Changed paths:
    M clang/lib/CodeGen/CGObjC.cpp
    M clang/test/CodeGenObjC/convert-messages-to-runtime-calls.m

  Log Message:
  -----------
  [CodeGen] Mark calls to objc_autorelease as tail

This enables a method sending an autorelease message to an object and
returning the object in MRR to avoid adding the object to an autorelease
pool if a call to objc_retainAutoreleasedReturnValue in the caller
function accepts the hand off of the retain count.

rdar://problem/50678052

Differential Revision: https://reviews.llvm.org/D91111




More information about the All-commits mailing list