[llvm-commits] [126898] Use one i32 instead of four i8 while emitting

Chris Lattner clattner at apple.com
Fri May 4 15:20:56 PDT 2007


On May 4, 2007, at 3:17 PM, Devang Patel wrote:

>
> On May 4, 2007, at 3:12 PM, Chris Lattner wrote:
>
>>
>> On May 4, 2007, at 2:44 PM, dpatel at apple.com wrote:
>>
>>> -----------
>>> Use one i32 instead of four i8 while emitting
>>> tail padding.
>>>
>>> This addresses first part of PR1278.
>>
>> Cool.  Does this do the right thing if the end of a struct is not 4-
>> byte aligned?  If the struct requires 7 bytes of tail padding, for
>> example, it would often be wrong to emit an i32 then [3 x i8],
>> because there will be padding before the i32.
>
> I think, it does right thing. But I'll double check.

Thanks!

-Chris




More information about the llvm-commits mailing list