[LLVMdev] Instruction Combining Pass *Breaking* Struct Reads?

Eli Friedman eli.friedman at gmail.com
Mon Jun 29 07:52:31 PDT 2009

On Mon, Jun 29, 2009 at 5:54 AM, Nyx<mcheva at cs.mcgill.ca> wrote:
> As you can see, I allocate two structs, one taking 16 bytes (containing two
> i64 values), and one taking 12 bytes (containing a pointer and an i64 value,
> this is on a 32-bit machine)

Are you sure that's right?  If the target data specifies that a
pointer is 64 bits or that i64 has an alignment of 64 bits, this code
is isn't allocating enough space for the struct.


More information about the llvm-dev mailing list