Don't record instructions for copying method arguments in the
authorVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 25 Apr 2002 04:46:28 +0000 (04:46 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 25 Apr 2002 04:46:28 +0000 (04:46 +0000)
AddedInstrns sets for the first machine instruction.  It is hard
to ensure that the right order is preserved, and sure enough, the
order was broken.  Instead, use a separate set for the function entry.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2318 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 4976c9bf9a1d03747cafa5bedd277fe545ff14b3..5922497f11e0e68709f7f67f2b31d79244a74bc9 100644 (file)
@@ -78,6 +78,7 @@ class PhyRegAlloc: public NonCopyable {
 
   
   AddedInstrMapType AddedInstrMap;      // to store instrns added in this phase
+  AddedInstrns AddedInstrAtEntry;       // to store instrns added at entry
   cfg::LoopInfo *LoopDepthCalc;         // to calculate loop depths 
   ReservedColorListType ResColList;     // A set of reserved regs if desired.
                                         // currently not used
index 4976c9bf9a1d03747cafa5bedd277fe545ff14b3..5922497f11e0e68709f7f67f2b31d79244a74bc9 100644 (file)
@@ -78,6 +78,7 @@ class PhyRegAlloc: public NonCopyable {
 
   
   AddedInstrMapType AddedInstrMap;      // to store instrns added in this phase
+  AddedInstrns AddedInstrAtEntry;       // to store instrns added at entry
   cfg::LoopInfo *LoopDepthCalc;         // to calculate loop depths 
   ReservedColorListType ResColList;     // A set of reserved regs if desired.
                                         // currently not used