[llvm] [BranchRelaxation] Remove quadratic behavior in relaxation pass (PR #96250)
Daniel Hoekwater via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 08:57:33 PDT 2024
================
@@ -384,11 +391,17 @@ bool BranchRelaxation::fixupConditionalBranch(MachineInstr &MI) {
auto finalizeBlockChanges = [&](MachineBasicBlock *MBB,
MachineBasicBlock *NewBB) {
- // Keep the block offsets up to date.
- adjustBlockOffsets(*MBB);
+ if (NewBB == nullptr)
+ return;
----------------
dhoekwater wrote:
Fixed!
https://github.com/llvm/llvm-project/pull/96250
More information about the llvm-commits
mailing list