mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 00:24:00 +00:00
Avoid creating duplicate CFG edges in the IfConversion pass.
Patch by Stefan Hepp. llvm-svn: 173395
This commit is contained in:
parent
efde585fc3
commit
708eb476f0
@ -1557,7 +1557,7 @@ void IfConverter::MergeBlocks(BBInfo &ToBBI, BBInfo &FromBBI, bool AddEdges) {
|
||||
if (Succ == FallThrough)
|
||||
continue;
|
||||
FromBBI.BB->removeSuccessor(Succ);
|
||||
if (AddEdges)
|
||||
if (AddEdges && !ToBBI.BB->isSuccessor(Succ))
|
||||
ToBBI.BB->addSuccessor(Succ);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user