[TableGen] Return ValueTypeByHwMode by const reference from CodeGenRegisterClass...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Aug 2018 15:29:24 +0000 (15:29 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Aug 2018 15:29:24 +0000 (15:29 +0000)
commita9d64122c51bb206468210825c6c2ae65cb63077
treeab15bffa89ddd76a9a12b7a80f41e3e141905b1b
parent1cc890d14befbd20a2636db282a31d3c099dc9af
[TableGen] Return ValueTypeByHwMode by const reference from CodeGenRegisterClass::getValueTypeNum

Avoids costly std::map copies inside ValueTypeByHwMode constructor

llvm-svn: 339884
llvm/utils/TableGen/CodeGenRegisters.h
llvm/utils/TableGen/DAGISelMatcherGen.cpp