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 | f95d9b99b3ca878e11d7615e7462507237ae3610 (patch) | |
| tree | b4b3a40acb2fe3a80579836f97035a54d7c6d25b /llvm/lib/Target/X86/InstSelectSimple.cpp | |
| parent | 30c715b30b5d0611e44da860764846a83598a583 (diff) | |
| download | bcm5719-llvm-f95d9b99b3ca878e11d7615e7462507237ae3610.tar.gz bcm5719-llvm-f95d9b99b3ca878e11d7615e7462507237ae3610.zip | |
Decrease usage of use_size()
llvm-svn: 9135
Diffstat (limited to 'llvm/lib/Target/X86/InstSelectSimple.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/InstSelectSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp index 9e4e499de9c..a6dc7c9fb4c 100644 --- a/llvm/lib/Target/X86/InstSelectSimple.cpp +++ b/llvm/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) |

