diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-23 16:53:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-23 16:53:04 +0000 |
commit | 1f21ef1511ce003fc177121b980e783b83992f82 (patch) | |
tree | 9444a0712ebde1caa9dee8529bb5bcc25a2e825a /lib/VMCore/BasicBlock.cpp | |
parent | 8daf056c90c2590709090b0c27045e1a45803461 (diff) |
make this more efficient. Scan up to 16 nodes, not the whole list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | lib/VMCore/BasicBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index ae6356bc70..b22a54162b 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -136,7 +136,7 @@ void BasicBlock::dropAllReferences() { // called while the predecessor still refers to this block. // void BasicBlock::removePredecessor(BasicBlock *Pred) { - assert((getNumUses() > 16 ||// Reduce cost of this assertion for complex CFGs. + assert((hasNUsesOrMore(16)||// Reduce cost of this assertion for complex CFGs. find(pred_begin(this), pred_end(this), Pred) != pred_end(this)) && "removePredecessor: BB is not a predecessor!"); |