[llvm-commits] CVS: llvm/include/llvm/Analysis/InstForest.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Oct 15 11:44:00 PDT 2003
Changes in directory llvm/include/llvm/Analysis:
InstForest.h updated: 1.20 -> 1.21
---
Log message:
Remove usage of use_size()
---
Diffs of the changes: (+1 -1)
Index: llvm/include/llvm/Analysis/InstForest.h
diff -u llvm/include/llvm/Analysis/InstForest.h:1.20 llvm/include/llvm/Analysis/InstForest.h:1.21
--- llvm/include/llvm/Analysis/InstForest.h:1.20 Tue Sep 30 13:37:40 2003
+++ llvm/include/llvm/Analysis/InstForest.h Wed Oct 15 11:43:24 2003
@@ -218,7 +218,7 @@
//
template <class Payload>
bool InstTreeNode<Payload>::CanMergeInstIntoTree(Instruction *I) {
- if (I->use_size() > 1) return false;
+ if (!I->use_empty() && !I->hasOneUse()) return false;
return I->getParent() == cast<Instruction>(getValue())->getParent();
}
More information about the llvm-commits
mailing list