aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2003-07-25 21:00:13 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2003-07-25 21:00:13 +0000
commitabcd8d75ff6dbd8e181817a491abb17a71abb55c (patch)
tree19529a4c71b9dff794ab148c9c2cd3f50cd0b456
parent51fca80cc5ee9e18044cf40b4044a92db42475a1 (diff)
downloadllvm-abcd8d75ff6dbd8e181817a491abb17a71abb55c.zip
llvm-abcd8d75ff6dbd8e181817a491abb17a71abb55c.tar.gz
llvm-abcd8d75ff6dbd8e181817a491abb17a71abb55c.tar.bz2
Remove unused field. Change the way unused regs. are marked and
found to consider regType info (since multiple reg types may share the same reg class, e.g., single and double on Sparc). llvm-svn: 7327
-rw-r--r--llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index 731eef2..dc7772e 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -71,8 +71,6 @@ class PhyRegAlloc : public NonCopyable {
AddedInstrns AddedInstrAtEntry; // to store instrns added at entry
LoopInfo *LoopDepthCalc; // to calculate loop depths
- std::vector<unsigned> ResColList; // A set of reserved regs if desired.
- // currently not used
public:
PhyRegAlloc(Function *F, const TargetMachine& TM, FunctionLiveVarInfo *Lvi,
@@ -87,11 +85,11 @@ public:
// access to register classes by class ID
//
const RegClass* getRegClassByID(unsigned int id) const {
- return RegClassList[id];
+ return RegClassList[id];
+ }
+ RegClass* getRegClassByID(unsigned int id) {
+ return RegClassList[id];
}
- RegClass* getRegClassByID(unsigned int id) {
- return RegClassList[id]; }
-
private:
void addInterference(const Value *Def, const ValueSet *LVSet,
@@ -134,11 +132,14 @@ private:
std::vector<MachineInstr*>& MIBef,
std::vector<MachineInstr*>& MIAft);
- int getUnusedUniRegAtMI(RegClass *RC, const MachineInstr *MInst,
- const ValueSet *LVSetBef);
+ int getUnusedUniRegAtMI(RegClass *RC, const int RegType,
+ const MachineInstr *MInst, const ValueSet *LVSetBef);
+
+ void setRelRegsUsedByThisInst(RegClass *RC, const int RegType,
+ const MachineInstr *MInst );
- void setRelRegsUsedByThisInst(RegClass *RC, const MachineInstr *MInst );
- int getUniRegNotUsedByThisInst(RegClass *RC, const MachineInstr *MInst);
+ int getUniRegNotUsedByThisInst(RegClass *RC, const int RegType,
+ const MachineInstr *MInst);
void addInterf4PseudoInstr(const MachineInstr *MInst);
};