diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-10-15 16:43:24 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-10-15 16:43:24 +0000 |
| commit | 33922eb64811ac758b5ebd2bc79150298f57ba7b (patch) | |
| tree | 46b228cede7d982bd6b39dbd21b6cef2b9fbb919 | |
| parent | fb42dd83f81541864f3950a3b99e732ca372e19b (diff) | |
| download | external_llvm-33922eb64811ac758b5ebd2bc79150298f57ba7b.zip external_llvm-33922eb64811ac758b5ebd2bc79150298f57ba7b.tar.gz external_llvm-33922eb64811ac758b5ebd2bc79150298f57ba7b.tar.bz2 | |
Remove usage of use_size()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9134 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | include/llvm/Analysis/InstForest.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/InstForest.h b/include/llvm/Analysis/InstForest.h index e004796..a001f5a 100644 --- a/include/llvm/Analysis/InstForest.h +++ b/include/llvm/Analysis/InstForest.h @@ -218,7 +218,7 @@ inline std::ostream &operator<<(std::ostream &o, const InstForest<Payload> &IF){ // 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(); } |
