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
#include "llvm/CodeGen/RegClass.h"
#include "llvm/CodeGen/LiveRangeInfo.h"
-#include <deque>
+#include <vector>
#include <map>
class MachineCodeForMethod;
//----------------------------------------------------------------------------
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;
#include "llvm/CodeGen/RegClass.h"
#include "llvm/CodeGen/LiveRangeInfo.h"
-#include <deque>
+#include <vector>
#include <map>
class MachineCodeForMethod;
//----------------------------------------------------------------------------
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;