summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h3
-rw-r--r--llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h5
2 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h b/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
index 2a8eb2ffb6f..d98ad9ab7a5 100644
--- a/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
+++ b/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
@@ -42,7 +42,7 @@
typedef hash_map <const Value *, LiveRange *, hashFuncValue> LiveRangeMapType;
-typedef vector <const Instruction *> CallRetInstrListType;
+typedef vector <const MachineInstr *> CallRetInstrListType;
class LiveRangeInfo
{
@@ -65,6 +65,7 @@ private:
void addInterference(const Instruction *const Inst,
const LiveVarSet *const LVSet);
+ void suggestRegs4CallRets();
public:
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index f96f27bdfbb..0cf5ec9e9f6 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -39,12 +39,13 @@
#include "llvm/CodeGen/LiveRangeInfo.h"
#include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h"
+#include <deque>
class AddedInstrns
{
public:
- vector<MachineInstr *> InstrnsBefore;
- vector<MachineInstr *> InstrnsAfter;
+ deque<MachineInstr *> InstrnsBefore;
+ deque<MachineInstr *> InstrnsAfter;
AddedInstrns() : InstrnsBefore(), InstrnsAfter() { }
};
OpenPOWER on IntegriCloud