[PATCH] D36562: [Bitfield] Make the bitfield a separate location if it has width of legal integer type and its bit offset is naturally aligned for the type
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 9 17:04:38 PDT 2017
wmi created this revision.
Herald added a subscriber: sanjoy.
Now, all the consecutive bitfields are wrapped as a large integer unless there is unamed zero sized bitfield in between. The patch is trying to make the bitfield to be accessed as separate memory location if it has width of legal integer type and its bit offset is naturally aligned for the type. This can significantly improve the access efficiency of such bitfield.
https://reviews.llvm.org/D30416 wants to achieve the same goal in llvm, but it is much more difficult because it has to deal with the significantly tweaked IR after all sorts of optimizations.
With the patch, we can remove most of https://reviews.llvm.org/D30416 unless the illegal memory access shrinking.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8475 bytes
Desc: not available
More information about the llvm-commits