mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Remove some unneeded branches. (spotted by Evan, thanks)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e5e7ce458a
commit
1cf08c1d6d
@ -595,6 +595,7 @@ bool BranchFolder::TailMergeBlocks(MachineFunction &MF) {
|
||||
// Reinsert an unconditional branch if needed.
|
||||
// The 1 below can be either an original single predecessor, or a result
|
||||
// of removing blocks in TryMergeBlocks.
|
||||
PredBB = prior(I); // this may have been changed in TryMergeBlocks
|
||||
if (MergePotentials.size()==1 &&
|
||||
(MergePotentials.begin())->second != PredBB)
|
||||
FixTail((MergePotentials.begin())->second, I, TII);
|
||||
|
Loading…
x
Reference in New Issue
Block a user