diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-05-19 15:41:33 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-05-19 15:41:33 +0000 |
commit | 0243ff9e62c3c2c5d230a24b9901ecce7807bb38 (patch) | |
tree | 31c1432a4127e3191f9d5e3912c1d079b1e9eb16 | |
parent | 67d6208d05e1afd9a327586336807e6f2bd5a5ff (diff) |
InstrnsBefore and InstrnsAfter are now vectors instead of deques.
May be slightly less efficient but significantly reduces special
cases interfaces in code generation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2649 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/RegAlloc/PhyRegAlloc.h | 6 | ||||
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index 5c27700d9d..29f872fe09 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -32,7 +32,7 @@ #include "llvm/CodeGen/RegClass.h" #include "llvm/CodeGen/LiveRangeInfo.h" -#include <deque> +#include <vector> #include <map> class MachineCodeForMethod; @@ -51,8 +51,8 @@ class LoopInfo; //---------------------------------------------------------------------------- struct AddedInstrns { - std::deque<MachineInstr*> InstrnsBefore;// Added insts BEFORE an existing inst - std::deque<MachineInstr*> InstrnsAfter; // Added insts AFTER an existing inst + vector<MachineInstr*> InstrnsBefore;// Added insts BEFORE an existing inst + vector<MachineInstr*> InstrnsAfter; // Added insts AFTER an existing inst }; typedef std::map<const MachineInstr *, AddedInstrns> AddedInstrMapType; diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h index 5c27700d9d..29f872fe09 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h @@ -32,7 +32,7 @@ #include "llvm/CodeGen/RegClass.h" #include "llvm/CodeGen/LiveRangeInfo.h" -#include <deque> +#include <vector> #include <map> class MachineCodeForMethod; @@ -51,8 +51,8 @@ class LoopInfo; //---------------------------------------------------------------------------- struct AddedInstrns { - std::deque<MachineInstr*> InstrnsBefore;// Added insts BEFORE an existing inst - std::deque<MachineInstr*> InstrnsAfter; // Added insts AFTER an existing inst + vector<MachineInstr*> InstrnsBefore;// Added insts BEFORE an existing inst + vector<MachineInstr*> InstrnsAfter; // Added insts AFTER an existing inst }; typedef std::map<const MachineInstr *, AddedInstrns> AddedInstrMapType; |