[LLVMdev] InstructionCombining forgets alignment of globals

David Greene dag at cray.com
Thu Jul 10 09:19:36 PDT 2008


On Thursday 10 July 2008 07:46, Nicolas Capens wrote:
> Hi Duncan,
>
> I see. I didn't know GlobalValue had a method for changing the alignment
> (and that 0 meant natural alignment). Explicitly calling setAlignment works
> like a charm.

Nicolas,

Where are you explicitly calling setAlignment?  From llvm-gcc code?

                                           -Dave



More information about the llvm-dev mailing list