diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-15 16:48:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-15 16:48:29 +0000 |
commit | fd05924946ebfcfb3409b21996cfd0836e4ddb31 (patch) | |
tree | 72c12deace7b040069b69109a7405311e0002581 /lib/Target/X86/InstSelectSimple.cpp | |
parent | 33922eb64811ac758b5ebd2bc79150298f57ba7b (diff) |
Decrease usage of use_size()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/InstSelectSimple.cpp')
-rw-r--r-- | lib/Target/X86/InstSelectSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index 9e4e499de9..a6dc7c9fb4 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -554,7 +554,7 @@ void ISel::SelectPHINodes() { // static SetCondInst *canFoldSetCCIntoBranch(Value *V) { if (SetCondInst *SCI = dyn_cast<SetCondInst>(V)) - if (SCI->use_size() == 1 && isa<BranchInst>(SCI->use_back()) && + if (SCI->hasOneUse() && isa<BranchInst>(SCI->use_back()) && SCI->getParent() == cast<BranchInst>(SCI->use_back())->getParent()) { const Type *Ty = SCI->getOperand(0)->getType(); if (Ty != Type::LongTy && Ty != Type::ULongTy) |