Minor changes.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 31 May 2003 07:41:54 +0000 (07:41 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 31 May 2003 07:41:54 +0000 (07:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6470 91177308-0d34-0410-b5e6-96231b3b80d8

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

index c55f8e0009b086d86335f448c71444ba731364c9..731eef29c45bcd0f5886a52b3fa3514057f97e7c 100644 (file)
@@ -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<const MachineInstr *, bool> OperandsColoredMap;
   
   // AddedInstrMap - Used to store instrns added in this phase
   std::map<const MachineInstr *, AddedInstrns> 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();
index c55f8e0009b086d86335f448c71444ba731364c9..731eef29c45bcd0f5886a52b3fa3514057f97e7c 100644 (file)
@@ -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<const MachineInstr *, bool> OperandsColoredMap;
   
   // AddedInstrMap - Used to store instrns added in this phase
   std::map<const MachineInstr *, AddedInstrns> 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();