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
This commit is contained in:
Vikram S. Adve 2002-05-19 15:41:33 +00:00
parent 67d6208d05
commit 0243ff9e62
2 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,7 @@
#include "llvm/CodeGen/RegClass.h" #include "llvm/CodeGen/RegClass.h"
#include "llvm/CodeGen/LiveRangeInfo.h" #include "llvm/CodeGen/LiveRangeInfo.h"
#include <deque> #include <vector>
#include <map> #include <map>
class MachineCodeForMethod; class MachineCodeForMethod;
@ -51,8 +51,8 @@ class LoopInfo;
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
struct AddedInstrns { struct AddedInstrns {
std::deque<MachineInstr*> InstrnsBefore;// Added insts BEFORE an existing inst vector<MachineInstr*> InstrnsBefore;// Added insts BEFORE an existing inst
std::deque<MachineInstr*> InstrnsAfter; // Added insts AFTER an existing inst vector<MachineInstr*> InstrnsAfter; // Added insts AFTER an existing inst
}; };
typedef std::map<const MachineInstr *, AddedInstrns> AddedInstrMapType; typedef std::map<const MachineInstr *, AddedInstrns> AddedInstrMapType;

View File

@ -32,7 +32,7 @@
#include "llvm/CodeGen/RegClass.h" #include "llvm/CodeGen/RegClass.h"
#include "llvm/CodeGen/LiveRangeInfo.h" #include "llvm/CodeGen/LiveRangeInfo.h"
#include <deque> #include <vector>
#include <map> #include <map>
class MachineCodeForMethod; class MachineCodeForMethod;
@ -51,8 +51,8 @@ class LoopInfo;
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
struct AddedInstrns { struct AddedInstrns {
std::deque<MachineInstr*> InstrnsBefore;// Added insts BEFORE an existing inst vector<MachineInstr*> InstrnsBefore;// Added insts BEFORE an existing inst
std::deque<MachineInstr*> InstrnsAfter; // Added insts AFTER an existing inst vector<MachineInstr*> InstrnsAfter; // Added insts AFTER an existing inst
}; };
typedef std::map<const MachineInstr *, AddedInstrns> AddedInstrMapType; typedef std::map<const MachineInstr *, AddedInstrns> AddedInstrMapType;