[llvm] [BOLT][AArch64] Expand cmpbr when reversing would overflow (PR #202998)
Paschalis Mpeis via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 16 02:50:59 PDT 2026
================
@@ -2141,8 +2160,11 @@ class MCPlusBuilder {
}
/// Reverses the branch condition in Inst and update its taken target to TBB.
- virtual void reverseBranchCondition(MCInst &Inst, const MCSymbol *TBB,
- MCContext *Ctx) const {
+ /// Assumes that the branch is reversible.
----------------
paschalis-mpeis wrote:
Maybe it's worth noting that `reverseBranchCondition` can replace a branch with a longer instruction sequence on some targets?
https://github.com/llvm/llvm-project/pull/202998
More information about the llvm-commits
mailing list