aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorsc-clulzze <d.marakulin@syntacore.com>2025-10-15 19:31:50 +0300
committerGitHub <noreply@github.com>2025-10-15 19:31:50 +0300
commitce60a03573a4d9f28dd6de42f61f0a3c4b0f2be9 (patch)
treef357a35f0b6513c23206164616650e7ef86b3307 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent9deba01c1d5db607da5b943bd5a6185384608605 (diff)
downloadllvm-ce60a03573a4d9f28dd6de42f61f0a3c4b0f2be9.zip
llvm-ce60a03573a4d9f28dd6de42f61f0a3c4b0f2be9.tar.gz
llvm-ce60a03573a4d9f28dd6de42f61f0a3c4b0f2be9.tar.bz2
[BranchRelaxation] Fix invalid branch generation in branch-relaxation (#162065)
If we have MBB with only one successor which is accessable through both conditional and unconditional branches (TBB == FBB), in `fixupConditionalBranch` we will first replace FBB with NewMBB in successors list - `MBB->replaceSuccessor(FBB, NewBB);`, and then create branch to TBB - `insertBranch(MBB, &NextBB, TBB, Cond);`, ending up with two branches to different blocks, but only one successor. Fixes: https://github.com/llvm/llvm-project/issues/162063
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions