[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:01:26 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>
+; CHECK-DUMP:      b       {{.*}}
----------------
antoniofrighetto wrote:

I'd suggest keeping the placeholder for clarity as it used to be (even if the purpose of the test is not to check branch targets): 
```suggestion
; CHECK-DUMP:      b       0x0 <main>
```

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


More information about the cfe-commits mailing list