diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-19 21:34:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-19 21:34:28 +0000 |
commit | 3b237fcd385a734b49bb54893ce256ba181e36f9 (patch) | |
tree | e2cbde4832ffbd2160bea61006af1cbe415e3604 /lib/Transforms/Scalar/Reassociate.cpp | |
parent | 4661dc6a6abc9ef22e674fe4951a715befd4e072 (diff) |
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
Diffstat (limited to 'lib/Transforms/Scalar/Reassociate.cpp')
-rw-r--r-- | lib/Transforms/Scalar/Reassociate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index c837f0bb6e..7d34df48eb 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -75,7 +75,7 @@ unsigned Reassociate::getRank(Value *V) { // 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! |