diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index c55f8e0009b..731eef29c45 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -61,6 +61,10 @@ class PhyRegAlloc : public NonCopyable { const TargetRegInfo &MRI; // Machine Register information const unsigned NumOfRegClasses; // recorded here for efficiency + // Map to indicate whether operands of each MachineInstr have been updated + // according to their assigned colors. This is primarily for debugging and + // could be removed in the long run. + std::map OperandsColoredMap; // AddedInstrMap - Used to store instrns added in this phase std::map AddedInstrMap; @@ -116,6 +120,7 @@ private: void colorIncomingArgs(); void colorCallRetArgs(); void updateMachineCode(); + void updateInstruction(MachineInstr* MInst, BasicBlock* BB); void printLabel(const Value *const Val); void printMachineCode(); diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h index c55f8e0009b..731eef29c45 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h @@ -61,6 +61,10 @@ class PhyRegAlloc : public NonCopyable { const TargetRegInfo &MRI; // Machine Register information const unsigned NumOfRegClasses; // recorded here for efficiency + // Map to indicate whether operands of each MachineInstr have been updated + // according to their assigned colors. This is primarily for debugging and + // could be removed in the long run. + std::map OperandsColoredMap; // AddedInstrMap - Used to store instrns added in this phase std::map AddedInstrMap; @@ -116,6 +120,7 @@ private: void colorIncomingArgs(); void colorCallRetArgs(); void updateMachineCode(); + void updateInstruction(MachineInstr* MInst, BasicBlock* BB); void printLabel(const Value *const Val); void printMachineCode();