diff options
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) |

