projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb42dd8
)
Remove usage of use_size()
author
Chris Lattner
<sabre@nondot.org>
Wed, 15 Oct 2003 16:43:24 +0000
(16:43 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 15 Oct 2003 16:43:24 +0000
(16:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9134
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Analysis/InstForest.h
patch
|
blob
|
history
diff --git
a/include/llvm/Analysis/InstForest.h
b/include/llvm/Analysis/InstForest.h
index e0047965f1b427d7abd84fdee29cc07a3ac78a22..a001f5a1a3e554b7c6209a7d20a54f1c54dd67d1 100644
(file)
--- 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();
}