OSDN Git Service

Switch a std::map to a DenseMap in CodeGenRegisters.
authorOwen Anderson <resistor@mac.com>
Fri, 27 Feb 2015 17:57:01 +0000 (17:57 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 27 Feb 2015 17:57:01 +0000 (17:57 +0000)
commitecf670391ba6efc58ee31dedc2bd3ffbea7cb8e1
tree85d13ecce4fb010e307b2c28902c50b26151a5cb
parentb0e53cd656bf134ceb2e72c93b8016ef241b80cf
Switch a std::map to a DenseMap in CodeGenRegisters.

The keys of the map are unique by pointer address, so there's no need
to use the llvm::less comparator. This allows us to use DenseMap
instead, which reduces tblgen time by 20% on my stress test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230769 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/CodeGenRegisters.cpp
utils/TableGen/CodeGenRegisters.h
utils/TableGen/RegisterInfoEmitter.cpp