[llvm] Fix emulated TLS alignment for large variables (PR #171037)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 8 19:35:36 PST 2026
================
----------------
efriedma-quic wrote:
DataLayout::getPreferredAlign has some weird code that increases the alignment of variables with explicitly specified alignment; see the FIXME in the implementation. It's likely to go away in the near future, so I'd prefer to avoid extending that behavior to additional contexts in the meantime.
Maybe just use `Align GVAlignment = GV->getPointerAlignment(DL)`.
https://github.com/llvm/llvm-project/pull/171037
More information about the llvm-commits
mailing list