[PATCH] [MC] bundle alignment: prevent padding instructions from crossing bundle boundaries

Derek Schuff dschuff at google.com
Wed Jan 30 14:21:34 PST 2013


When bundle alignment is enabled, and a fragment is to be aligned to the
end of a bundle and it is too large to fit in the current bundle, it must
be pushed all the way to the end of the next bundle. However if a single
long nop instruction is used, it cannot cross the bundle boundary itself.
So, in this case, emit the padding in 2 pieces: one piece goes to the end
of the current bundle, and the other piece goes from there to where the
fragment starts.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130130/34b849d6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-nop-boundary.diff
Type: application/octet-stream
Size: 3128 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130130/34b849d6/attachment.obj>


More information about the llvm-commits mailing list