From: Justin Bogner Date: Wed, 21 Sep 2016 00:25:45 +0000 (+0000) Subject: Revert "TableGen: Switch from a std::map to a DenseMap in CodeGenSubRegIndex. NFC" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40e5ccb2609c80d0cf15927589ef8caaf661748e;p=llvm Revert "TableGen: Switch from a std::map to a DenseMap in CodeGenSubRegIndex. NFC" It turns out we iterate over this map a fair amount and the order matters for clang to be deterministic. See: http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20160919/391315.html This reverts r279875. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282040 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/CodeGenRegisters.h b/utils/TableGen/CodeGenRegisters.h index 7a8fa12e513..b8d47aa4ff8 100644 --- a/utils/TableGen/CodeGenRegisters.h +++ b/utils/TableGen/CodeGenRegisters.h @@ -74,7 +74,8 @@ namespace llvm { std::string getQualifiedName() const; // Map of composite subreg indices. - typedef DenseMap CompMap; + typedef std::map> CompMap; // Returns the subreg index that results from composing this with Idx. // Returns NULL if this and Idx don't compose.