OSDN Git Service

TableGen: Switch from a std::map to a DenseMap in CodeGenSubRegIndex. NFC
authorJustin Bogner <mail@justinbogner.com>
Fri, 26 Aug 2016 22:29:36 +0000 (22:29 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 26 Aug 2016 22:29:36 +0000 (22:29 +0000)
commitea4e88c5cffb0fa2b480f6b22f3eae5b967883ea
tree43ac27208989270995bcea978b8d44b043cfb94e
parent7e943897736573f9f4450f1e378d5480b15e81ce
TableGen: Switch from a std::map to a DenseMap in CodeGenSubRegIndex. NFC

This mapping is between pointers, which DenseMap is particularly good
at. Most targets aren't really affected, but if there's a lot of
subregister composition this can shave off a good chunk of time from
generating registers.

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