Implement suggestions from Chris:
authorOwen Anderson <resistor@mac.com>
Tue, 1 Jul 2008 07:02:30 +0000 (07:02 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 1 Jul 2008 07:02:30 +0000 (07:02 +0000)
commit57ce0319b7eb4418aac910d9a094e57d983a64d2
treeb0751eb70fc4d6eeb33ce92e3c01c731f4589186
parentff4d609ec5eca4fc30a931a505d0c18f7569f8c4
Implement suggestions from Chris:
  - Use a more accurate heuristic for the size of the hashtable.
  - Use bitwise and instead of modulo since the size is a power of two.
  - Use new[] instead of malloc().

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