From 5d9a5fd61d44d5d17079f41b8d6f331841cdbfc5 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 3 Mar 2015 23:53:00 +0000 Subject: [PATCH] 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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231175 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/LiveStackAnalysis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/LiveStackAnalysis.h b/include/llvm/CodeGen/LiveStackAnalysis.h index df683983fa5..3da33ba3fc9 100644 --- a/include/llvm/CodeGen/LiveStackAnalysis.h +++ b/include/llvm/CodeGen/LiveStackAnalysis.h @@ -33,7 +33,7 @@ namespace llvm { /// S2IMap - Stack slot indices to live interval mapping. /// - typedef std::map SS2IntervalMap; + typedef std::unordered_map SS2IntervalMap; SS2IntervalMap S2IMap; /// S2RCMap - Stack slot indices to register class mapping. -- 2.34.1