llvm-project
3a8eabeb - [BOLT][AArch64] Support block reordering beyond 1KB for FEAT_CMPBR. (#185443)

Commit
39 days ago
[BOLT][AArch64] Support block reordering beyond 1KB for FEAT_CMPBR. (#185443) Currently LongJmpPass::relaxLocalBranches bails early if the estimated size of a binary function is less than 32KB assuming that the shortest branches are 16 bits. Therefore the fixup value for the cold branch target may go out of range if the function is larger than 1KB. I am decreasing ShortestJumpSpan from 32KB to 1KB, since FEAT_CMPBR branches are 11 bits.
Author
Parents
Loading