[llvm] [BOLT] Extend calculateEmittedSize for Block Size Calculation (PR #73076)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 22 11:54:07 PST 2023


================
@@ -1230,6 +1230,9 @@ class BinaryContext {
   ///
   /// Return the pair where the first size is for the main part, and the second
   /// size is for the cold one.
+  /// Modify BinaryBasicBlock::OutputAddressRange for each basic block in the
+  /// function in place so that BB.OutputAddressRange.second less
+  /// BB.OutputAddressRange.first gives the emitted size of BB.
----------------
maksfb wrote:

"... BasicBlock::getOutputSize() gives the emitted size of BB."

Please update the summary as well.

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


More information about the llvm-commits mailing list