[llvm-commits] [llvm] r102365 - in /llvm/trunk: lib/CodeGen/AsmPrinter/AsmPrinter.cpp test/CodeGen/X86/alignment.ll test/CodeGen/X86/unaligned-load.ll

Duncan Sands baldrick at free.fr
Tue Apr 27 05:23:52 PDT 2010


Hi Chris,

> +  // If the alignment is specified, we *must* obey it.  Overaligning a global
> +  // with a specified alignment is a prompt way to break globals emitted to
> +  // sections and expected to be contiguous (e.g. ObjC metadata).

maybe this should be documented in the LangRef or somewhere else where people
are likely to notice.  Thinking "increasing the alignment never hurts" is an
easy thought to have.  Also,  isn't there a pass that increases alignment?
Maybe it only does it for loads and stores...

Ciao,

Duncan.



More information about the llvm-commits mailing list