[llvm-commits] CVS: llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Wed Aug 18 13:04:36 PDT 2004



Changes in directory llvm/lib/Target/SparcV9/RegAlloc:

PhyRegAlloc.cpp updated: 1.162 -> 1.163
---
Log message:

Instead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.162 llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.163
--- llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.162	Wed Aug 18 13:13:37 2004
+++ llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp	Wed Aug 18 15:04:24 2004
@@ -484,7 +484,7 @@
     // their assigned registers or insert spill code, as appropriate. 
     // Also, fix operands of call/return instructions.
     for (MachineBasicBlock::iterator MII = MBB.begin(); MII != MBB.end(); ++MII)
-      if (! TM.getInstrInfo()->isDummyPhiInstr(MII->getOpcode()))
+      if (MII->getOpcode() != V9::PHI)
         updateInstruction(MII, MBB);
 
     // Now, move code out of delay slots of branches and returns if needed.
@@ -552,7 +552,7 @@
       MachineInstr *MInst = MII; 
 
       // do not process Phis
-      if (TM.getInstrInfo()->isDummyPhiInstr(MInst->getOpcode()))
+      if (MInst->getOpcode() == V9::PHI)
 	continue;
 
       // if there are any added instructions...






More information about the llvm-commits mailing list