From fd05924946ebfcfb3409b21996cfd0836e4ddb31 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 15 Oct 2003 16:48:29 +0000 Subject: Decrease usage of use_size() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9135 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/InstrSelection/InstrForest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/InstrSelection/InstrForest.cpp') diff --git a/lib/CodeGen/InstrSelection/InstrForest.cpp b/lib/CodeGen/InstrSelection/InstrForest.cpp index f4736b59ea..496e279ef9 100644 --- a/lib/CodeGen/InstrSelection/InstrForest.cpp +++ b/lib/CodeGen/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(operand) && operand->use_size() == 1 && + if (isa(operand) && operand->hasOneUse() && cast(operand)->getParent() == instr->getParent() && instr->getOpcode() != Instruction::PHINode && instr->getOpcode() != Instruction::Call) -- cgit v1.2.3-70-g09d2