[llvm-commits] CVS: llvm/lib/CodeGen/InstrSelection/InstrForest.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Oct 19 16:37:32 PDT 2003


Changes in directory llvm/lib/CodeGen/InstrSelection:

InstrForest.cpp updated: 1.46 -> 1.47

---
Log message:

Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.



---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/CodeGen/InstrSelection/InstrForest.cpp
diff -u llvm/lib/CodeGen/InstrSelection/InstrForest.cpp:1.46 llvm/lib/CodeGen/InstrSelection/InstrForest.cpp:1.47
--- llvm/lib/CodeGen/InstrSelection/InstrForest.cpp:1.46	Wed Oct 15 11:48:28 2003
+++ llvm/lib/CodeGen/InstrSelection/InstrForest.cpp	Sun Oct 19 16:34:27 2003
@@ -299,7 +299,7 @@
 	  InstrTreeNode* opTreeNode;
 	  if (isa<Instruction>(operand) && operand->hasOneUse() &&
 	      cast<Instruction>(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 @@
   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 ||





More information about the llvm-commits mailing list