diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-10-08 01:09:45 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-10-08 01:09:45 +0000 |
commit | e40bf5f9f40a4672cd55bfa51c64a4bb6f4b2f8f (patch) | |
tree | 1eedc39c9a15e338f48e5b125951fa10f1ddde0c /lib/CodeGen/PrologEpilogInserter.h | |
parent | 5adf60c03bcc72dd5462bdc4a5c72c1247a7879d (diff) | |
download | llvm-e40bf5f9f40a4672cd55bfa51c64a4bb6f4b2f8f.tar.gz llvm-e40bf5f9f40a4672cd55bfa51c64a4bb6f4b2f8f.tar.bz2 llvm-e40bf5f9f40a4672cd55bfa51c64a4bb6f4b2f8f.tar.xz |
bugfix. The target may use virtual registers that aren't tracked for re-use but are allocated by the scavenger. The re-use algorithm needs to watch for that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.h')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.h b/lib/CodeGen/PrologEpilogInserter.h index ee759e8622..1dccfd3c43 100644 --- 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/ADT/IndexedMap.h" #include "llvm/Target/TargetRegisterInfo.h" namespace llvm { @@ -99,7 +98,7 @@ namespace llvm { // 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; + DenseMap<unsigned, FrameConstantEntry> FrameConstantRegMap; #ifndef NDEBUG // Machine function handle. |