[llvm] CodeGenPrepare: Remove threadlocal_address intrinsic when cheap to recompute. (PR #87844)

James Y Knight via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 8 11:05:36 PDT 2024


jyknight wrote:

Hm. I think this is an unfortunate way to fix the issue. Long-term, I'd like to get to the point where it is no longer valid to reference a TLS value directly in IR as if it was a simple address, but instead, require that accesses MUST always go through a call. We aren't in that ideal state _now_, but this goes further away from it instead of further towards it.


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


More information about the llvm-commits mailing list