diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-02-29 20:31:17 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-02-29 20:31:17 +0000 |
commit | 95b38aea959449461a9245b0a199758982125f01 (patch) | |
tree | e60e928a4b15ec57b990161b45c70a12a76b5f02 /utils/TableGen/CodeGenTarget.cpp | |
parent | acbceeae4d7bdfbbc3437c60a5a3e26449888a15 (diff) |
Switch TargetRegisterInfo::getSubReg() to use a lookup table.
Instead of nested switch statements, use a lookup table. On ARM, this replaces
a 23k (x86_64 release build) function with a 16k table. Its not unlikely to
be faster, as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.cpp')
0 files changed, 0 insertions, 0 deletions