llvm-project
810148cb - [ObjCARC][Contract] Optimize bundled RetainRV to ClaimRV (#139762)

Commit
139 days ago
[ObjCARC][Contract] Optimize bundled RetainRV to ClaimRV (#139762) 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@bougacha.org>
Author
Parents
Loading