Skip to content

Commit

Permalink
[BOLT][NFC] Fix comment (llvm#73983)
Browse files Browse the repository at this point in the history
Fix off-by-one error in comment.
  • Loading branch information
maksfb authored Nov 30, 2023
1 parent a9a5af8 commit 4f30812
Showing 1 changed file with 2 additions and 2 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

0 comments on commit 4f30812

Please sign in to comment.