[clang] [llvm] [LoongArch] Add `-fstack-clash-protection` support (PR #195595)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 27 21:01:42 PDT 2026


https://github.com/wangleiat approved this pull request.

> No issues overall, just one minor question:
> 
> According to the [LangRef,](https://llvm.org/docs/LangRef.html#function-attributes) the default value of "stack-probe-size" is 4096:
> 
> ```
> It takes one required integer value, which is 4096 by default.
> ```
> 
> However, on LoongArch, the kernel page size is typically 16K. If we still use 4K here, could that introduce unnecessary store instructions during stack probing?

I checked GCC as well, and it also uses 4096. This is just for discussion and does not block the landing.

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


More information about the llvm-commits mailing list