The function reordering algorithm added by https://reviews.llvm.org/D152834 and
used by BOLT (https://reviews.llvm.org/D153039) is untested.
Add some tests at the appropriate layer.
Depends on D159526
Differential D159527
[CodeLayout] Add unittest for cache-directed sort MaskRay on Sep 17 2023, 4:09 PM. Authored by
Details The function reordering algorithm added by https://reviews.llvm.org/D152834 and Add some tests at the appropriate layer. Depends on D159526
Diff Detail
Event TimelineComment Actions Another example would be where the algorithm stops merging functions (with call edges) because the temporal locality degrades too much, but this can be done in a separate patch.
Comment Actions I'd suggest to explicitly initialize Sizes for each element to improve readability and avoid confusion. |
I might be missing something. Isn't this supposed to be the same size as Counts?