mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-05 10:08:03 +00:00
Blocks that cond-br and uncond-br/fallthrough to same block should have
only one successor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37324 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de0963df42
commit
035fdeb370
@ -672,7 +672,10 @@ static bool CorrectExtraCFGEdges(MachineBasicBlock &MBB,
|
||||
|
||||
MachineBasicBlock::pred_iterator SI = MBB.succ_begin();
|
||||
while (SI != MBB.succ_end()) {
|
||||
if (*SI == DestA) {
|
||||
if (*SI == DestA && DestA == DestB) {
|
||||
DestA = DestB = 0;
|
||||
++SI;
|
||||
} else if (*SI == DestA) {
|
||||
DestA = 0;
|
||||
++SI;
|
||||
} else if (*SI == DestB) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user