[llvm-commits] CVS: llvm/lib/Transforms/Scalar/Reassociate.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 19 16:35:52 PDT 2003
Changes in directory llvm/lib/Transforms/Scalar:
Reassociate.cpp updated: 1.25 -> 1.26
---
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: (+1 -1)
Index: llvm/lib/Transforms/Scalar/Reassociate.cpp
diff -u llvm/lib/Transforms/Scalar/Reassociate.cpp:1.25 llvm/lib/Transforms/Scalar/Reassociate.cpp:1.26
--- llvm/lib/Transforms/Scalar/Reassociate.cpp:1.25 Wed Oct 15 11:48:29 2003
+++ llvm/lib/Transforms/Scalar/Reassociate.cpp Sun Oct 19 16:34:28 2003
@@ -75,7 +75,7 @@
// for PHI nodes, we cannot have infinite recursion here, because there
// cannot be loops in the value graph that do not go through PHI nodes.
//
- if (I->getOpcode() == Instruction::PHINode ||
+ if (I->getOpcode() == Instruction::PHI ||
I->getOpcode() == Instruction::Alloca ||
I->getOpcode() == Instruction::Malloc || isa<TerminatorInst>(I) ||
I->mayWriteToMemory()) // Cannot move inst if it writes to memory!
More information about the llvm-commits
mailing list