mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 23:20:54 +00:00
Remove usage of use_size()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9134 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fb42dd83f8
commit
33922eb648
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user