summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-08-18 20:04:24 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-08-18 20:04:24 +0000
commit418379e229dc491050f7f6292aa8364c29b71301 (patch)
tree31de07aef8edcd0f8dfe0050513c5587dcace151 /lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
parente058b27faf9ba0df1582fddda55c3bcbd96de9a0 (diff)
downloadllvm-418379e229dc491050f7f6292aa8364c29b71301.tar.gz
llvm-418379e229dc491050f7f6292aa8364c29b71301.tar.bz2
llvm-418379e229dc491050f7f6292aa8364c29b71301.tar.xz
Instead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp')
-rw-r--r--lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp b/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
index 8e11dd1da5..dadc38570c 100644
--- a/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
+++ b/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
@@ -1444,8 +1444,7 @@ void ModuloSchedulingPass::removePHIs(const MachineBasicBlock *origBB, std::vect
//Start with the kernel and for each phi insert a copy for the phi def and for each arg
for(MachineBasicBlock::iterator I = kernelBB->begin(), E = kernelBB->end(); I != E; ++I) {
//Get op code and check if its a phi
- MachineOpCode OC = I->getOpcode();
- if(TMI->isDummyPhiInstr(OC)) {
+ if(I->getOpcode() == V9::PHI) {
Instruction *tmp = 0;
for(unsigned i = 0; i < I->getNumOperands(); ++i) {
//Get Operand
@@ -1491,8 +1490,7 @@ void ModuloSchedulingPass::removePHIs(const MachineBasicBlock *origBB, std::vect
for(std::vector<MachineBasicBlock*>::iterator MB = epilogues.begin(), ME = epilogues.end(); MB != ME; ++MB) {
for(MachineBasicBlock::iterator I = (*MB)->begin(), E = (*MB)->end(); I != E; ++I) {
//Get op code and check if its a phi
- MachineOpCode OC = I->getOpcode();
- if(TMI->isDummyPhiInstr(OC)) {
+ if(I->getOpcode() == V9::PHI) {
Instruction *tmp = 0;
for(unsigned i = 0; i < I->getNumOperands(); ++i) {
//Get Operand