[all-commits] [llvm/llvm-project] d333c0: [BOLT] Extend calculateEmittedSize() for block siz...

ShatianWang via All-commits all-commits at lists.llvm.org
Thu Nov 23 12:28:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d333c0e062e76df466cd06b1b04d52749acd944d
      https://github.com/llvm/llvm-project/commit/d333c0e062e76df466cd06b1b04d52749acd944d
  Author: ShatianWang <38512325+ShatianWang at users.noreply.github.com>
  Date:   2023-11-23 (Thu, 23 Nov 2023)

  Changed paths:
    M bolt/include/bolt/Core/BinaryContext.h
    M bolt/lib/Core/BinaryContext.cpp
    M bolt/lib/Core/BinaryFunction.cpp
    A bolt/test/X86/calculate-emitted-block-size.s

  Log Message:
  -----------
  [BOLT] Extend calculateEmittedSize() for block size calculation (#73076)

This commit modifies BinaryContext::calculateEmittedSize() to update 
the BinaryBasicBlock::OutputAddressRange of each basic block in the
function in place. BinaryBasicBlock::getOutputSize() now gives the 
emitted size of the basic block.




More information about the All-commits mailing list