We previously neglected this, leading us to underestimate the maximum
possible branch address offset.
Fixing this should allow us to reduce slop to more reasonable
levels. I've lowered it to 256 for now, though I suspect we could go
lower.
Differential D144029
[lld-macho] Account for alignment in thunk insertion algorithm int3 on Feb 14 2023, 9:55 AM. Authored by
Details
We previously neglected this, leading us to underestimate the maximum Fixing this should allow us to reduce slop to more reasonable
Diff Detail
Event TimelineComment Actions Thanks for providing a much more satisfying approach than the one I proposed in https://reviews.llvm.org/D144020 ! Comment Actions Sorry it took a while for me to get to fixing this -- been busy. Thanks for the review! Comment Actions Some tests started failing on 32 bit here, the usual thing I think. Fixed in https://github.com/llvm/llvm-project/commit/0e1fb48bb95abaf94c0d21b58c4c075f6faad8ba, please correct if this was not your intent. |