mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-23 14:30:50 +00:00
Handle jump tables. Test to follow soon.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133083 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5cf34feb67
commit
aeb6da46ce
@ -1948,6 +1948,8 @@ isBlockOnlyReachableByFallthrough(const MachineBasicBlock *MBB) const {
|
||||
for (MachineInstr::mop_iterator OI = MI.operands_begin(),
|
||||
OE = MI.operands_end(); OI != OE; ++OI) {
|
||||
const MachineOperand& OP = *OI;
|
||||
if (OP.isJTI())
|
||||
return false;
|
||||
if (OP.isMBB() && OP.getMBB() == MBB)
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user