[llvm] [TLI] Add support for inferring attr `cold`/`noreturn` on `std::terminate` and `__cxa_throw` (PR #101622)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 00:31:17 PDT 2024


================
@@ -1100,6 +1100,12 @@ declare i64 @write(i32, ptr, i64)
 ; CHECK: declare void @abort() [[NOFREE_COLD:#[0-9]+]]
 declare void @abort()
 
+; CHECK: declare void @__cxa_throw() [[NOFREE_COLD_NORETURN:#[0-9]+]]
----------------
dtcxzyw wrote:

```suggestion
; CHECK: declare void @__cxa_throw() [[COLD_NORETURN:#[0-9]+]]
```


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


More information about the llvm-commits mailing list