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/CodeGen/InstrSelection/InstrForest.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/CodeGen/InstrSelection/InstrForest.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/InstrSelection/InstrForest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp b/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp index f4736b59eac..496e279ef90 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrForest.cpp +++ b/llvm/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<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) |

