[llvm] ValueTracking: Skip threadlocal.address in computeKnownBits (PR #88435)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 02:51:38 PDT 2024


https://github.com/nikic commented:

An alternative, and I think maybe better, approach to this would be to infer an `align` return attribute on threadlocal.address in InstCombine. This way, not only will computeKnownBits() automatically handle it, but it will also benefit other APIs that directly look at alignment, such as getPointerAlign().

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


More information about the llvm-commits mailing list