[PATCH] D69980: [ObjC] Override TailCallKind when lowering objc intrinsics

Francis Visoiu Mistrih via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 18:10:39 PST 2019


thegameg created this revision.
thegameg added reviewers: rjmccall, ahatanak, pete.
Herald added subscribers: dexonsmith, hiraditya.
Herald added a project: LLVM.

The tail-call-kind-ness is known by the ObjCARC analysis and can be enforced while lowering the intrinsics to calls.

This allows us to get the requested tail calls at -O0 without trying to preserve the attributes throughout passes that change code even at -O0 ,like the Always Inliner, where the ObjCOpt pass doesn't run.


https://reviews.llvm.org/D69980

Files:
  llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp
  llvm/test/Transforms/PreISelIntrinsicLowering/objc-arc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69980.228349.patch
Type: text/x-patch
Size: 4461 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191108/924941a8/attachment.bin>


More information about the llvm-commits mailing list