summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineBasicBlock.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-12-11 03:14:18 +0000
committerBill Wendling <isanbard@gmail.com>2009-12-11 03:14:18 +0000
commit64bdde2093f461f10c095d08d53dc57c6612ce69 (patch)
tree1addb1cedf976837572c052cd034fbc2323b67c8 /include/llvm/CodeGen/MachineBasicBlock.h
parent4bde1ab82d4a520dca59db1fd212d77ac667b3a8 (diff)
downloadllvm-64bdde2093f461f10c095d08d53dc57c6612ce69.tar.gz
llvm-64bdde2093f461f10c095d08d53dc57c6612ce69.tar.bz2
llvm-64bdde2093f461f10c095d08d53dc57c6612ce69.tar.xz
Address comments on last patch:
- Loosen the restrictions when checking of it branches to a landing pad. - Make the loop more efficient by checking the '.insert' return value. - Do cheaper checks first. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91101 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineBasicBlock.h')
-rw-r--r--include/llvm/CodeGen/MachineBasicBlock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h
index 023f9b6564..7e3ce6bd7c 100644
--- a/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/include/llvm/CodeGen/MachineBasicBlock.h
@@ -327,9 +327,9 @@ public:
/// 'Old', change the code and CFG so that it branches to 'New' instead.
void ReplaceUsesOfBlockWith(MachineBasicBlock *Old, MachineBasicBlock *New);
- /// BranchesToLandingPad - The basic block branches only to a landing pad or
- /// to another basic block which branches only to a landing pad. No other
- /// instructions are present other than the unconditional branch.
+ /// BranchesToLandingPad - The basic block is a landing pad or branches only
+ /// to a landing pad. No other instructions are present other than the
+ /// unconditional branch.
bool BranchesToLandingPad(const MachineBasicBlock *MBB) const;
/// CorrectExtraCFGEdges - Various pieces of code can cause excess edges in