aboutsummaryrefslogtreecommitdiff
path: root/llvm/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
commit7593525fcddc2ac7274629c1adc10a52803c7173 (patch)
treea6b68bcfb39f4cb4b82277e8c8ccc1ace8e34668 /llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
parentde44bc018a2dc7ceeded44d6b1ca3f280b01b859 (diff)
downloadllvm-7593525fcddc2ac7274629c1adc10a52803c7173.zip
llvm-7593525fcddc2ac7274629c1adc10a52803c7173.tar.gz
llvm-7593525fcddc2ac7274629c1adc10a52803c7173.tar.bz2
Instead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.
llvm-svn: 15906
Diffstat (limited to 'llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp')
-rw-r--r--llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp b/llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
index 8e11dd1..dadc385 100644
--- a/llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
+++ b/llvm/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