[LLVMdev] InstructionCombining forgets alignment of globals
Nicolas Capens
nicolas at capens.net
Mon Jul 14 06:13:23 PDT 2008
Hi Dave,
See the fibonacci.cpp file in my first message in this thread. Now I call
setAlignment right after creating the GlobalVariable's and everything is
fine.
Cheers,
Nicolas
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of David Greene
Sent: Thursday, 10 July, 2008 18:20
To: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] InstructionCombining forgets alignment of globals
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
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list