[cfe-dev] Alignment of bitfield structs

Reid Kleckner rnk at google.com
Mon Apr 20 13:10:42 PDT 2015


On Mon, Apr 20, 2015 at 6:57 AM, Bradley Smith <bradley.smith at arm.com>
wrote:
>
> However, when this IR goes down to LLVM there is no context of the
> bitfields
> left so LLVM just sees an i64 load from an i40. InstCombine sees this and
> blindly (but correctly I believe, based on the information it has) converts
> this load to the ABI alignment of i64, which is now incorrect.
>

This seems suspicious to me. I always thought that 'load i32..., align 1'
was a supported way to ask the backend to do the load slicing if needed,
and this instcombine breaks that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150420/cfeaa0f0/attachment.html>


More information about the cfe-dev mailing list