[all-commits] [llvm/llvm-project] f849b1: Reland "[ObjCARC][Contract] Optimize bundled Retai...
Marina Taylor via All-commits
all-commits at lists.llvm.org
Wed May 14 05:21:33 PDT 2025
Branch: refs/heads/users/citymarina/objc-claim-3b-reland
Home: https://github.com/llvm/llvm-project
Commit: f849b10e97161ad55415cdf6a48091058c4968e2
https://github.com/llvm/llvm-project/commit/f849b10e97161ad55415cdf6a48091058c4968e2
Author: Marina Taylor <marina_taylor at apple.com>
Date: 2025-05-14 (Wed, 14 May 2025)
Changed paths:
M llvm/lib/Transforms/ObjCARC/ARCRuntimeEntryPoints.h
M llvm/lib/Transforms/ObjCARC/CMakeLists.txt
M llvm/lib/Transforms/ObjCARC/ObjCARC.cpp
M llvm/lib/Transforms/ObjCARC/ObjCARC.h
M llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
M llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
A llvm/test/Transforms/ObjCARC/contract-attached-call-retain-to-claim.ll
Log Message:
-----------
Reland "[ObjCARC][Contract] Optimize bundled RetainRV to ClaimRV"
This teaches ObjCARCContract to transform attachedcall bundles
referencing objc_retainAutoreleasedReturnValue to instead
reference objc_claimAutoreleasedReturnValue.
The only distinction between the two is that the latter is required
to be guaranteed to immediately follow the call it's attached to,
and, by construction, the bundles always achieve that by:
- not being separable from the call through IR and the backend
- not getting the marker emitted when claimARV is the attachedcall.
This is enabled only for arm64, arm64e, and arm64_32 on
macOS13/iOS16 and related operating systems.
Co-authored-by: Ahmed Bougacha <ahmed at bougacha.org>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list