summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-03-03 23:53:00 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-03-03 23:53:00 +0000
commit9e9e1d3ad2f8757a535ec6902b3240109e300f36 (patch)
treee6456408c3dcae13523125554577ddcef13a0432 /llvm
parent4bdf5ada18b57af89745599a2b1377a3e49590e7 (diff)
downloadbcm5719-llvm-9e9e1d3ad2f8757a535ec6902b3240109e300f36.tar.gz
bcm5719-llvm-9e9e1d3ad2f8757a535ec6902b3240109e300f36.zip
Change LiveStackAnalysis::SS2IntervalMap from std::map to std::unordered_map
This use case doesn't appear to benefit from ordering, and std::unordered_map has the advantage that it supports emplace (the LiveInterval values really shouldn't be copyable or movable & they won't be in a near-future patch). llvm-svn: 231175
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/LiveStackAnalysis.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/LiveStackAnalysis.h b/llvm/include/llvm/CodeGen/LiveStackAnalysis.h
index df683983fa5..3da33ba3fc9 100644
--- a/llvm/include/llvm/CodeGen/LiveStackAnalysis.h
+++ b/llvm/include/llvm/CodeGen/LiveStackAnalysis.h
@@ -33,7 +33,7 @@ namespace llvm {
/// S2IMap - Stack slot indices to live interval mapping.
///
- typedef std::map<int, LiveInterval> SS2IntervalMap;
+ typedef std::unordered_map<int, LiveInterval> SS2IntervalMap;
SS2IntervalMap S2IMap;
/// S2RCMap - Stack slot indices to register class mapping.
OpenPOWER on IntegriCloud