]> granicus.if.org Git - llvm/commitdiff
Revert "TableGen: Switch from a std::map to a DenseMap in CodeGenSubRegIndex. NFC"
authorJustin Bogner <mail@justinbogner.com>
Wed, 21 Sep 2016 00:25:45 +0000 (00:25 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 21 Sep 2016 00:25:45 +0000 (00:25 +0000)
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

utils/TableGen/CodeGenRegisters.h

index 7a8fa12e5137019a2dd625a749315585c9f04025..b8d47aa4ff82d4e4cc39ca625d3822cdc5c450f8 100644 (file)
@@ -74,7 +74,8 @@ namespace llvm {
     std::string getQualifiedName() const;
 
     // Map of composite subreg indices.
-    typedef DenseMap<CodeGenSubRegIndex *, CodeGenSubRegIndex *> CompMap;
+    typedef std::map<CodeGenSubRegIndex *, CodeGenSubRegIndex *,
+                     deref<llvm::less>> CompMap;
 
     // Returns the subreg index that results from composing this with Idx.
     // Returns NULL if this and Idx don't compose.