Eliminate the large XXXSubRegTable constant arrays.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 27 Jul 2012 00:10:51 +0000 (00:10 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 27 Jul 2012 00:10:51 +0000 (00:10 +0000)
commit0371cd8b1c0d2101295ca9381a0b437e1f2d8fa2
treedbac4fa9f697b4013e0a3fb6ac52a36940449f25
parent2ca6b3c37498eebf1f729f85cee03aa38ea5bc65
Eliminate the large XXXSubRegTable constant arrays.

These tables were indexed by [register][subreg index] which made them,
very large and sparse.

Replace them with lists of sub-register indexes that match the existing
lists of sub-registers. MCRI::getSubReg() becomes a very short linear
search, like getSubRegIndex() already was.

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