[llvm-dev] grouping global variables by alignment: safe to do at LLVM level, or only at Clang level?
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Tue Jul 26 10:22:46 PDT 2016
> I’m saying that it is *already* the current state of affairs, AFAIK we don’t provide any guarantee about what you describes.
We already do some quite invasive things to real-world globals that
would violate such assumptions. We increase their alignment beyond ABI
requirements if we think it's helpful; the GlobalMerge pass sorts
globals before shoving them all under one symbol (in increasing order
size for some reason that escapes me right now).
More information about the llvm-dev