projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Use a simpler data structure to calculate the least recently used register...
[oota-llvm.git]
/
lib
/
CodeGen
/
PrologEpilogInserter.h
diff --git
a/lib/CodeGen/PrologEpilogInserter.h
b/lib/CodeGen/PrologEpilogInserter.h
index ee759e8622cf0dd5f1b0e2df3e9488772b8b0025..aa95773596cfef28a8787c4276ebb88845627614 100644
(file)
--- a/
lib/CodeGen/PrologEpilogInserter.h
+++ b/
lib/CodeGen/PrologEpilogInserter.h
@@
-27,7
+27,6
@@
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/ADT/SparseBitVector.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/ADT/SparseBitVector.h"
#include "llvm/ADT/DenseMap.h"
-#include "llvm/ADT/IndexedMap.h"
#include "llvm/Target/TargetRegisterInfo.h"
namespace llvm {
#include "llvm/Target/TargetRegisterInfo.h"
namespace llvm {
@@
-95,11
+94,17
@@
namespace llvm {
// functions.
bool ShrinkWrapThisFunction;
// functions.
bool ShrinkWrapThisFunction;
+ // Flag to control whether to use the register scavenger to resolve
+ // frame index materialization registers. Set according to
+ // TRI->requiresFrameIndexScavenging() for the curren function.
+ bool FrameIndexVirtualScavenging;
+
// When using the scavenger post-pass to resolve frame reference
// materialization registers, maintain a map of the registers to
// the constant value and SP adjustment associated with it.
// When using the scavenger post-pass to resolve frame reference
// materialization registers, maintain a map of the registers to
// the constant value and SP adjustment associated with it.
- typedef std::pair<int, int> FrameConstantEntry;
- IndexedMap<FrameConstantEntry, VirtReg2IndexFunctor> FrameConstantRegMap;
+ typedef std::pair<TargetRegisterInfo::FrameIndexValue, int>
+ FrameConstantEntry;
+ DenseMap<unsigned, FrameConstantEntry> FrameConstantRegMap;
#ifndef NDEBUG
// Machine function handle.
#ifndef NDEBUG
// Machine function handle.