Skip to content

Commit

Permalink
Revert "TableGen: Switch from a std::map to a DenseMap in CodeGenSubR…
Browse files Browse the repository at this point in the history
…egIndex. 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
  • Loading branch information
bogner committed Sep 21, 2016
1 parent 86978b7 commit 40e5ccb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/TableGen/CodeGenRegisters.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 40e5ccb

Please sign in to comment.