I tried to standardize the formatting and tidy up the huge amount of
excess whitespace a little. Also improved some comments.
llvm-svn: 8642
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index 88bd5e2..a767dbd 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -99,15 +99,11 @@
const char *getPassName () const {
return "Traditional graph-coloring reg. allocator";
}
-
- // access to register classes by class ID
- //
- const RegClass* getRegClassByID(unsigned id) const {
+
+ inline const RegClass* getRegClassByID(unsigned id) const {
return RegClassList[id];
}
- RegClass* getRegClassByID(unsigned id) {
- return RegClassList[id];
- }
+ inline RegClass *getRegClassByID(unsigned id) { return RegClassList[id]; }
private:
void addInterference(const Value *Def, const ValueSet *LVSet,
@@ -147,7 +143,6 @@
void printLabel(const Value *Val);
void printMachineCode();
-
int getUsableUniRegAtMI(int RegType, const ValueSet *LVSetBef,
MachineInstr *MI,
std::vector<MachineInstr*>& MIBef,