On 10/11/2016 04:23 PM, Denys Vlasenko wrote:

This is better than current behavior, but this is not what I want.

15-byte function does not need to be aligned to 16 bytes on a machine
with 128-byte L1I cachelines. It needs to be aligned to 128 bytes
if there are less than 15 bytes remaining; if there are MORE than 15 bytes
remaining, why align at all? It's a waste of space.

So that sounds like you'd want to modify the max_skip value based on the size of the function - which would be a fairly minor change. We could call that -falign-functions-max-skip-size or something like that.


Bernd

Reply via email to