mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Decrease usage of use_size()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9135 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user