diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-09-19 17:33:55 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-09-19 17:33:55 +0000 |
commit | a7330ba5ac04eb0163ac6d5bcd5c59a71bcc107e (patch) | |
tree | 5c73515bccc647ed9d6b93413afc4b29e3f8b8a2 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 042acb2cf7384a011464551ed489a1a539509d66 (diff) | |
download | bcm5719-llvm-a7330ba5ac04eb0163ac6d5bcd5c59a71bcc107e.tar.gz bcm5719-llvm-a7330ba5ac04eb0163ac6d5bcd5c59a71bcc107e.zip |
[RegisterBankInfo] Avoid heap allocation in most cases.
The OperandsMapper class is used heavy in RegBankSelect and each
instantiation triggered a heap allocation for the array of operands.
Instead, use a SmallVector with a big enough size such that most of the
cases do not have to use dynamically allocated memory.
This improves the compile time of the RegBankSelect pass.
llvm-svn: 281916
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions