From d23a229c4cd4019ecfdd18b855c32146922d1b14 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Thu, 25 Apr 2002 04:46:28 +0000 Subject: [PATCH] Don't record instructions for copying method arguments in the 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 | 1 + lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index 4976c9bf9a1..5922497f11e 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -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 diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h index 4976c9bf9a1..5922497f11e 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h @@ -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