[llvm-commits] CVS: llvm/lib/CodeGen/InstrSelection/InstrForest.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Oct 15 11:49:05 PDT 2003
Changes in directory llvm/lib/CodeGen/InstrSelection:
InstrForest.cpp updated: 1.45 -> 1.46
---
Log message:
Decrease usage of use_size()
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/CodeGen/InstrSelection/InstrForest.cpp
diff -u llvm/lib/CodeGen/InstrSelection/InstrForest.cpp:1.45 llvm/lib/CodeGen/InstrSelection/InstrForest.cpp:1.46
--- llvm/lib/CodeGen/InstrSelection/InstrForest.cpp:1.45 Wed Sep 17 16:34:23 2003
+++ llvm/lib/CodeGen/InstrSelection/InstrForest.cpp Wed Oct 15 11:48:28 2003
@@ -297,7 +297,7 @@
// 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)
More information about the llvm-commits
mailing list