diff options
author | sc-clulzze <d.marakulin@syntacore.com> | 2025-10-15 19:31:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-15 19:31:50 +0300 |
commit | ce60a03573a4d9f28dd6de42f61f0a3c4b0f2be9 (patch) | |
tree | f357a35f0b6513c23206164616650e7ef86b3307 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 9deba01c1d5db607da5b943bd5a6185384608605 (diff) | |
download | llvm-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