[llvm-commits] CVS: llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Aug 18 13:04:36 PDT 2004
Changes in directory llvm/lib/CodeGen/ModuloScheduling:
ModuloScheduling.cpp updated: 1.25 -> 1.26
---
Log message:
Instead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.
---
Diffs of the changes: (+2 -4)
Index: llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
diff -u llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp:1.25 llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp:1.26
--- llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp:1.25 Mon Aug 16 16:55:02 2004
+++ llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp Wed Aug 18 15:04:23 2004
@@ -1444,8 +1444,7 @@
//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 @@
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
More information about the llvm-commits
mailing list