[llvm] [BOLT] Extend calculateEmittedSize() for block size calculation (PR #73076)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 23 07:19:22 PST 2023


ShatianWang wrote:

Based on comments by @maksfb: 
- [Fix-up 1](https://github.com/llvm/llvm-project/pull/73076/commits/ac9dd53386aaa64db1bc8ec1fe56149753b3598d) modified `BinaryContext::calculateEmittedSize`
- [fixup! Fix-up 2 -- adding a test](https://github.com/llvm/llvm-project/pull/73076/commits/5b10432d0e1a479d906f898747b08ac75b70dbd4) added a test
- [fixup! fixup! Fix-up 2 -- adding a test](https://github.com/llvm/llvm-project/pull/73076/commits/ce86547bb705727c2b4ac3d2cdac008491aef575) modified the printed BB output range format into `Output Address Range: [0x..., 0x....) (N bytes)`
- [fixup! fixup! fixup! Fix-up 2 -- adding a test](https://github.com/llvm/llvm-project/pull/73076/commits/59c14246c1ff61a4a2567a8658813fa8f2e86f15) used `formatv` to implement the new format to make the code cleaner

https://github.com/llvm/llvm-project/pull/73076


More information about the llvm-commits mailing list