5 ms·
Aligned branch and jump targets are just for the sake of maximising instruction cache hit-rate. It will always remain a micro-optimisation and will not make a d
by rocketChair 5y ago
Aligned branch and jump targets are just for the sake of maximising instruction cache hit-rate. It will always remain a micro-optimisation and will not make a difference in this and most other cases.
- deleted 5y ago[deleted]
- mibsl 5y agoTo maximize I$ hit rate you'd actually want to disable loop alignment to not inflate code size with padding. Here's an example of unstable benchmark performance caused by the lack of code alignment in .NET's JIT: https://github.com/dotnet/runtime/issues/43227 https://github.com/dotnet/runtime/issues/43227