From 3b237fcd385a734b49bb54893ce256ba181e36f9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 19 Oct 2003 21:34:28 +0000 Subject: Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9269 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/InstrSelection/InstrForest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/InstrSelection/InstrForest.cpp') diff --git a/lib/CodeGen/InstrSelection/InstrForest.cpp b/lib/CodeGen/InstrSelection/InstrForest.cpp index 496e279ef9..7ae2373764 100644 --- a/lib/CodeGen/InstrSelection/InstrForest.cpp +++ b/lib/CodeGen/InstrSelection/InstrForest.cpp @@ -299,7 +299,7 @@ InstrForest::buildTreeForInstruction(Instruction *instr) InstrTreeNode* opTreeNode; if (isa(operand) && operand->hasOneUse() && cast(operand)->getParent() == instr->getParent() && - instr->getOpcode() != Instruction::PHINode && + instr->getOpcode() != Instruction::PHI && instr->getOpcode() != Instruction::Call) { // Recursively create a treeNode for it. @@ -334,7 +334,7 @@ InstrForest::buildTreeForInstruction(Instruction *instr) if (numChildren > 2) { unsigned instrOpcode = treeNode->getInstruction()->getOpcode(); - assert(instrOpcode == Instruction::PHINode || + assert(instrOpcode == Instruction::PHI || instrOpcode == Instruction::Call || instrOpcode == Instruction::Load || instrOpcode == Instruction::Store || -- cgit v1.2.3-70-g09d2