mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
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:
parent
67d6208d05
commit
0243ff9e62
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user