summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InlineSpiller.cpp
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2016-04-06 22:31:17 +0000
committerWei Mi <wmi@google.com>2016-04-06 22:31:17 +0000
commit284fa0bd71c9e857252d47e38423e0063288d554 (patch)
tree32403dbe7fbc6018f697ab1943fbc02f760adb74 /llvm/lib/CodeGen/InlineSpiller.cpp
parent5d2e06a34bd14ca2508a342e15509f6d5a06a387 (diff)
downloadbcm5719-llvm-284fa0bd71c9e857252d47e38423e0063288d554.tar.gz
bcm5719-llvm-284fa0bd71c9e857252d47e38423e0063288d554.zip
Fix the compare-clang diff error introduced by r265547.
Use MapVector instead of DenseMap for MergeableSpillsMap so it will be iterated in determined order. llvm-svn: 265610
Diffstat (limited to 'llvm/lib/CodeGen/InlineSpiller.cpp')
-rw-r--r--llvm/lib/CodeGen/InlineSpiller.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp
index 66eb83a7b2f..b88da602599 100644
--- a/llvm/lib/CodeGen/InlineSpiller.cpp
+++ b/llvm/lib/CodeGen/InlineSpiller.cpp
@@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
#include "Spiller.h"
+#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/TinyPtrVector.h"
@@ -71,7 +72,7 @@ class HoistSpillHelper {
// Map from pair of (StackSlot and Original VNI) to a set of spills which
// have the same stackslot and have equal values defined by Original VNI.
// These spills are mergeable and are hoist candiates.
- typedef DenseMap<std::pair<int, VNInfo *>, SmallPtrSet<MachineInstr *, 16>>
+ typedef MapVector<std::pair<int, VNInfo *>, SmallPtrSet<MachineInstr *, 16>>
MergeableSpillsMap;
MergeableSpillsMap MergeableSpills;
OpenPOWER on IntegriCloud