aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9/InstrSelection/InstrForest.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-15 16:48:29 +0000
committerChris Lattner <sabre@nondot.org>2003-10-15 16:48:29 +0000
commitfd05924946ebfcfb3409b21996cfd0836e4ddb31 (patch)
tree72c12deace7b040069b69109a7405311e0002581 /lib/Target/SparcV9/InstrSelection/InstrForest.cpp
parent33922eb64811ac758b5ebd2bc79150298f57ba7b (diff)
downloadexternal_llvm-fd05924946ebfcfb3409b21996cfd0836e4ddb31.zip
external_llvm-fd05924946ebfcfb3409b21996cfd0836e4ddb31.tar.gz
external_llvm-fd05924946ebfcfb3409b21996cfd0836e4ddb31.tar.bz2
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/SparcV9/InstrSelection/InstrForest.cpp')
-rw-r--r--lib/Target/SparcV9/InstrSelection/InstrForest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/InstrSelection/InstrForest.cpp b/lib/Target/SparcV9/InstrSelection/InstrForest.cpp
index f4736b5..496e279 100644
--- a/lib/Target/SparcV9/InstrSelection/InstrForest.cpp
+++ b/lib/Target/SparcV9/InstrSelection/InstrForest.cpp
@@ -297,7 +297,7 @@ InstrForest::buildTreeForInstruction(Instruction *instr)
// is used directly, i.e., made a child of the instruction node.
//
InstrTreeNode* opTreeNode;
- if (isa<Instruction>(operand) && operand->use_size() == 1 &&
+ if (isa<Instruction>(operand) && operand->hasOneUse() &&
cast<Instruction>(operand)->getParent() == instr->getParent() &&
instr->getOpcode() != Instruction::PHINode &&
instr->getOpcode() != Instruction::Call)