Added support for correct spilling of %ccr
llvm-svn: 1112
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index 0380e80..57cd965 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -156,7 +156,7 @@
RegStackOffsets StackOffsets;
- vector<const MachineInstr *> PhiInstList; // a list of all phi instrs
+ //vector<const MachineInstr *> PhiInstList; // a list of all phi instrs
//------- private methods ---------------------------------------------------
@@ -194,9 +194,20 @@
void printMachineCode();
friend class UltraSparcRegInfo;
+
+
+ int getUsableRegAtMI(RegClass *RC, const int RegType, const MachineInstr *MInst,
+ const LiveVarSet *LVSetBef, MachineInstr *MIBef,
+ MachineInstr *MIAft );
+
+ int getUnusedRegAtMI(RegClass *RC, const MachineInstr *MInst,
+ const LiveVarSet *LVSetBef);
+
void setRegsUsedByThisInst(RegClass *RC, const MachineInstr *MInst );
int getRegNotUsedByThisInst(RegClass *RC, const MachineInstr *MInst);
+
+
void PhyRegAlloc::insertPhiEleminateInstrns();
public: