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:
Rafael Espindola 2011-06-15 21:00:28 +00:00
parent 5cf34feb67
commit aeb6da46ce

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