[llvm-commits] CVS: llvm/lib/VMCore/BasicBlock.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 23 08:53:17 PST 2005
Changes in directory llvm/lib/VMCore:
BasicBlock.cpp updated: 1.55 -> 1.56
---
Log message:
make this more efficient. Scan up to 16 nodes, not the whole list.
---
Diffs of the changes: (+1 -1)
BasicBlock.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/VMCore/BasicBlock.cpp
diff -u llvm/lib/VMCore/BasicBlock.cpp:1.55 llvm/lib/VMCore/BasicBlock.cpp:1.56
--- llvm/lib/VMCore/BasicBlock.cpp:1.55 Wed Feb 23 01:09:08 2005
+++ llvm/lib/VMCore/BasicBlock.cpp Wed Feb 23 10:53:04 2005
@@ -136,7 +136,7 @@
// 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!");
More information about the llvm-commits
mailing list