mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-01 07:30:31 +00:00
MachineVerifier: Clean up some syntactic weirdness left behind by find&replace.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209581 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9d934aca34
commit
c734d38c7c
@ -577,8 +577,8 @@ MachineVerifier::visitMachineBasicBlockBefore(const MachineBasicBlock *MBB) {
|
|||||||
report("MBB exits via unconditional fall-through but its successor "
|
report("MBB exits via unconditional fall-through but its successor "
|
||||||
"differs from its CFG successor!", MBB);
|
"differs from its CFG successor!", MBB);
|
||||||
}
|
}
|
||||||
if (!MBB->empty() && (&MBB->back())->isBarrier() &&
|
if (!MBB->empty() && MBB->back().isBarrier() &&
|
||||||
!TII->isPredicated((&MBB->back()))) {
|
!TII->isPredicated(&MBB->back())) {
|
||||||
report("MBB exits via unconditional fall-through but ends with a "
|
report("MBB exits via unconditional fall-through but ends with a "
|
||||||
"barrier instruction!", MBB);
|
"barrier instruction!", MBB);
|
||||||
}
|
}
|
||||||
@ -598,10 +598,10 @@ MachineVerifier::visitMachineBasicBlockBefore(const MachineBasicBlock *MBB) {
|
|||||||
if (MBB->empty()) {
|
if (MBB->empty()) {
|
||||||
report("MBB exits via unconditional branch but doesn't contain "
|
report("MBB exits via unconditional branch but doesn't contain "
|
||||||
"any instructions!", MBB);
|
"any instructions!", MBB);
|
||||||
} else if (!(&MBB->back())->isBarrier()) {
|
} else if (!MBB->back().isBarrier()) {
|
||||||
report("MBB exits via unconditional branch but doesn't end with a "
|
report("MBB exits via unconditional branch but doesn't end with a "
|
||||||
"barrier instruction!", MBB);
|
"barrier instruction!", MBB);
|
||||||
} else if (!(&MBB->back())->isTerminator()) {
|
} else if (!MBB->back().isTerminator()) {
|
||||||
report("MBB exits via unconditional branch but the branch isn't a "
|
report("MBB exits via unconditional branch but the branch isn't a "
|
||||||
"terminator instruction!", MBB);
|
"terminator instruction!", MBB);
|
||||||
}
|
}
|
||||||
@ -629,10 +629,10 @@ MachineVerifier::visitMachineBasicBlockBefore(const MachineBasicBlock *MBB) {
|
|||||||
if (MBB->empty()) {
|
if (MBB->empty()) {
|
||||||
report("MBB exits via conditional branch/fall-through but doesn't "
|
report("MBB exits via conditional branch/fall-through but doesn't "
|
||||||
"contain any instructions!", MBB);
|
"contain any instructions!", MBB);
|
||||||
} else if ((&MBB->back())->isBarrier()) {
|
} else if (MBB->back().isBarrier()) {
|
||||||
report("MBB exits via conditional branch/fall-through but ends with a "
|
report("MBB exits via conditional branch/fall-through but ends with a "
|
||||||
"barrier instruction!", MBB);
|
"barrier instruction!", MBB);
|
||||||
} else if (!(&MBB->back())->isTerminator()) {
|
} else if (!MBB->back().isTerminator()) {
|
||||||
report("MBB exits via conditional branch/fall-through but the branch "
|
report("MBB exits via conditional branch/fall-through but the branch "
|
||||||
"isn't a terminator instruction!", MBB);
|
"isn't a terminator instruction!", MBB);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user