[all-commits] [llvm/llvm-project] 5ff65a: [ObjCARC][Contract] Optimize bundled RetainRV to C...
Marina Taylor via All-commits
all-commits at lists.llvm.org
Tue May 13 05:15:11 PDT 2025
Branch: refs/heads/users/citymarina/objc-claim-3a
Home: https://github.com/llvm/llvm-project
Commit: 5ff65a8958d6877888ec1c6ff9e1da62b46f05ec
https://github.com/llvm/llvm-project/commit/5ff65a8958d6877888ec1c6ff9e1da62b46f05ec
Author: Marina Taylor <marina_taylor at apple.com>
Date: 2025-05-13 (Tue, 13 May 2025)
Changed paths:
M llvm/lib/Transforms/ObjCARC/ARCRuntimeEntryPoints.h
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:
-----------
[ObjCARC][Contract] Optimize bundled RetainRV to ClaimRV (#138697)
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