[LLVMdev] InstructionCombining forgets alignment of globals

David Greene dag at cray.com
Thu Jul 10 09:17:44 PDT 2008


On Thursday 10 July 2008 05:18, Nicolas Capens wrote:
> Hi all,
>
>
>
> The InstructionCombining pass causes alignment of globals to be ignored.

> All three SSE instructions will generate a fault for accessing unaligned
> memory. Disabling InstructionCombining gives me the following correct code:

I'm looking at a very similar bug in a test here.  I've tracked it down to 
some problem in ComputeMaskedBits but I haven't been able to get
further than that.  I'm trying to reduce the testcase (hence the thread
about Function cloning).

                                                     -Dave




More information about the llvm-dev mailing list