diff options
author | Justin Bogner <mail@justinbogner.com> | 2016-09-21 00:25:45 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2016-09-21 00:25:45 +0000 |
commit | f2f436369ae422368c70b813d513cf7242d8a944 (patch) | |
tree | 03f40c148ff21fb1875162446c166094ca26d75f | |
parent | 79dcc274b4c5334389b629a75d915cf954995b15 (diff) | |
download | bcm5719-llvm-f2f436369ae422368c70b813d513cf7242d8a944.tar.gz bcm5719-llvm-f2f436369ae422368c70b813d513cf7242d8a944.zip |
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.
llvm-svn: 282040
-rw-r--r-- | llvm/utils/TableGen/CodeGenRegisters.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenRegisters.h b/llvm/utils/TableGen/CodeGenRegisters.h index 7a8fa12e513..b8d47aa4ff8 100644 --- a/llvm/utils/TableGen/CodeGenRegisters.h +++ b/llvm/utils/TableGen/CodeGenRegisters.h @@ -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. |