Handle jump tables. Test to follow soon.

llvm-svn: 133083
This commit is contained in:
Rafael Espindola 2011-06-15 21:00:28 +00:00
parent 5d525568e0
commit ab20567227
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}