diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-03 17:27:15 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-03 17:27:15 +0000 | 
| commit | 67a71b3184ce20a901e874d0ee25e01397dd87ef (patch) | |
| tree | 836a05cff50ca46176117b86029f061fa4db54f0 /lib/CodeGen/MachineBasicBlock.cpp | |
| parent | 6fe5c7aa327e188b7176daa5595bbf075a6b94df (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
| -rw-r--r-- | lib/CodeGen/MachineBasicBlock.cpp | 30 | 
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index 655a0bf4450d..64134ce59e95 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -143,36 +143,6 @@ MachineBasicBlock::iterator MachineBasicBlock::getFirstTerminator() {    return I;  } -/// isOnlyReachableViaFallthough - Return true if this basic block has -/// exactly one predecessor and the control transfer mechanism between -/// the predecessor and this block is a fall-through. -bool MachineBasicBlock::isOnlyReachableByFallthrough() const { -  // If this is a landing pad, it isn't a fall through.  If it has no preds, -  // then nothing falls through to it. -  if (isLandingPad() || pred_empty()) -    return false; -   -  // If there isn't exactly one predecessor, it can't be a fall through. -  const_pred_iterator PI = pred_begin(), PI2 = PI; -  ++PI2; -  if (PI2 != pred_end()) -    return false; -   -  // The predecessor has to be immediately before this block. -  const MachineBasicBlock *Pred = *PI; -   -  if (!Pred->isLayoutSuccessor(this)) -    return false; -   -  // If the block is completely empty, then it definitely does fall through. -  if (Pred->empty()) -    return true; -   -  // Otherwise, check the last instruction. -  const MachineInstr &LastInst = Pred->back(); -  return !LastInst.getDesc().isBarrier(); -} -  void MachineBasicBlock::dump() const {    print(dbgs());  }  | 
