[clang] [lld] [llvm] [LLVM] Respect `optnone` in `promote-args` and `deadargelim` (PR #211804)

Antonio Frighetto via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 6 07:33:19 PDT 2026


================
@@ -30,12 +30,10 @@ entry:
 
 ; CHECK-NOT: linking module flags 'branch-target-enforcement': IDs have conflicting values in
 ; CHECK-DUMP: <main>:
-; CHECK-DUMP:      paciasp
-; CHECK-DUMP:      str
 ; CHECK-DUMP:      bl      0x8 <main+0x8>
----------------
antoniofrighetto wrote:

I meant to preserve the placeholder, the offset still needs to be updated (as PAC is not there anymore, as above).
```suggestion
; CHECK-DUMP:      b       0x0 <main>
```

https://github.com/llvm/llvm-project/pull/211804


More information about the cfe-commits mailing list