diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-29 23:46:50 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-29 23:46:50 +0000 |
commit | 6c449ebbe6b5e9909ee7a5673b4892d30b9c3ce8 (patch) | |
tree | d354bf06be589c57b5d0523811ae03071d9b84b4 /lib/CodeGen/MachineInstr.cpp | |
parent | 8bee081a2cc6a84de125525215fffb4cc1cbe12a (diff) |
Implement getSubRegIndex as a linear search on the SubRegTable instead of using a big switch.
- The search bounds are constant, in the worst case (ARM target) it will scan over 30 uint16_ts.
- This method isn't very hot, I had problems finding a testcase where it's called more than a dozen of times (no perf impact).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151773 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions