From 95b080aca1dc5a121994fd8d85a412ae9565dd56 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. llvm-svn: 2318 --- lib/CodeGen/RegAlloc/PhyRegAlloc.h | 1 + 1 file changed, 1 insertion(+) 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