[llvm] CodeGen: Respect function align attribute if less than preferred alignment. (PR #149444)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 20 09:16:43 PDT 2025


efriedma-quic wrote:

We've never promised any function alignment on x86, beyond the 2-byte alignment restriction for member functions.  At -O2, we normally prefer 16-byte alignment, but that's just a heuristic, and we don't align at -Os/-Oz.  If asan requires higher alignment for some reason, we should model that in the compiler somewhere (maybe in the asan lowering pass).

But it might make sense to revert this patch until we've worked out the overall approach here.

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


More information about the llvm-commits mailing list