[llvm] [ObjCARC] Run ObjCARCContract before PreISelIntrinsicLowering (PR #184149)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 07:42:38 PST 2026
================
@@ -0,0 +1,19 @@
+; RUN: llc -o - %s | FileCheck %s
+
+; Verify that ObjCARCContract rewrites retainRV to claimRV, removing the
+; retainRV marker.
+
+target triple = "arm64-apple-ios18"
+
+declare ptr @f()
+
+; CHECK-LABEL: _t:
+; CHECK: bl _f
+; CHECK-NEXT: bl _objc_claimAutoreleasedReturnValue
+; CHECK-NOT: mov x29, x29
----------------
arsenm wrote:
Generate checks instead of -NOT
https://github.com/llvm/llvm-project/pull/184149
More information about the llvm-commits
mailing list