mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 19:02:35 +00:00
Remove some unneeded branches. (spotted by Evan, thanks)
llvm-svn: 37198
This commit is contained in:
parent
03349b0344
commit
ca37006ffb
@ -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