Big bug fix: getUsableUniRegAtMI needed to return values in arguments
authorVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 18 Mar 2002 03:37:19 +0000 (03:37 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 18 Mar 2002 03:37:19 +0000 (03:37 +0000)
but did not pass the arguments by reference!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1906 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp

index c78b971e796dd29b2d3ba4f77e5c49f25ebcdd73..1fbe5258b2c48fe189154d8a22dcd5c9303656bd 100644 (file)
@@ -453,7 +453,7 @@ void PhyRegAlloc::updateMachineCode()
       unsigned Opcode =  MInst->getOpCode();
     
       // do not process Phis
-      if (TM.getInstrInfo().isPhi(Opcode))
+      if (TM.getInstrInfo().isDummyPhiInstr(Opcode))
        continue;
 
       // Now insert speical instructions (if necessary) for call/return
@@ -741,8 +741,8 @@ int PhyRegAlloc::getUsableUniRegAtMI(RegClass *RC,
                                  const int RegType,
                                  const MachineInstr *MInst, 
                                  const ValueSet *LVSetBef,
-                                 MachineInstr *MIBef,
-                                 MachineInstr *MIAft) {
+                                 MachineInstr *&MIBef,
+                                 MachineInstr *&MIAft) {
 
   int RegU =  getUnusedUniRegAtMI(RC, MInst, LVSetBef);
 
index c78b971e796dd29b2d3ba4f77e5c49f25ebcdd73..1fbe5258b2c48fe189154d8a22dcd5c9303656bd 100644 (file)
@@ -453,7 +453,7 @@ void PhyRegAlloc::updateMachineCode()
       unsigned Opcode =  MInst->getOpCode();
     
       // do not process Phis
-      if (TM.getInstrInfo().isPhi(Opcode))
+      if (TM.getInstrInfo().isDummyPhiInstr(Opcode))
        continue;
 
       // Now insert speical instructions (if necessary) for call/return
@@ -741,8 +741,8 @@ int PhyRegAlloc::getUsableUniRegAtMI(RegClass *RC,
                                  const int RegType,
                                  const MachineInstr *MInst, 
                                  const ValueSet *LVSetBef,
-                                 MachineInstr *MIBef,
-                                 MachineInstr *MIAft) {
+                                 MachineInstr *&MIBef,
+                                 MachineInstr *&MIAft) {
 
   int RegU =  getUnusedUniRegAtMI(RC, MInst, LVSetBef);