forked from OSchip/llvm-project
Handle jump tables. Test to follow soon.
llvm-svn: 133083
This commit is contained in:
parent
5d525568e0
commit
ab20567227
|
@ -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…
Reference in New Issue