Skip to content

Commit

Permalink
merge main into amd-stg-open
Browse files Browse the repository at this point in the history
Change-Id: I69bbd9465fb0222e3a1ea75f6ae9fb0e6871864d
  • Loading branch information
ronlieb committed Dec 2, 2023
2 parents 9e21115 + e017169 commit c46437d
Show file tree
Hide file tree
Showing 297 changed files with 11,511 additions and 4,194 deletions.
4 changes: 2 additions & 2 deletions bolt/lib/Core/BinaryFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3352,9 +3352,9 @@ void BinaryFunction::fixBranches() {
// We are going to generate two branches. Check if their targets are in
// the same fragment as this block. If only one target is in the same
// fragment, make it the destination of the conditional branch. There
// is a chance it will be a short branch which takes 5 bytes fewer than
// is a chance it will be a short branch which takes 4 bytes fewer than
// a long conditional branch. For unconditional branch, the difference
// is 4 bytes.
// is 3 bytes.
if (BB->getFragmentNum() != TSuccessor->getFragmentNum() &&
BB->getFragmentNum() == FSuccessor->getFragmentNum())
swapSuccessors();
Expand Down
4 changes: 0 additions & 4 deletions bolt/lib/Core/FunctionLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,6 @@ bool FunctionLayout::update(const ArrayRef<BinaryBasicBlock *> NewLayout) {
for (BinaryBasicBlock *const BB : NewLayout) {
FragmentNum Num = BB->getFragmentNum();

assert(Num >= Fragments.back()->getFragmentNum() &&
"Blocks must be arranged such that fragments are monotonically "
"increasing.");

// Add empty fragments if necessary
while (Fragments.back()->getFragmentNum() < Num)
addFragment();
Expand Down
Loading

0 comments on commit c46437d

Please sign in to comment.