diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-02-27 16:15:32 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-02-27 16:15:32 +0000 |
commit | 7502119ce8b2be4d8996ab004e90074bd49d9d45 (patch) | |
tree | 8da7af4cf9a561ad0e4feffec43c5e5241e78121 /lldb/packages/Python/lldbsuite/test/tools/lldb-server/main.cpp | |
parent | 3917ca2af4c4af6c5804c4e60c9163b88bef76fc (diff) | |
download | bcm5719-llvm-7502119ce8b2be4d8996ab004e90074bd49d9d45.tar.gz bcm5719-llvm-7502119ce8b2be4d8996ab004e90074bd49d9d45.zip |
[X86] Use APInt instead of SmallBitVector tracking undef elements from getTargetConstantBitsFromNode and getConstVector.
Summary:
SmallBitVector uses a malloc for more than 58 bits on a 64-bit target and more than 27 bits on a 32-bit target. Some of the vector types we deal with here use more than those number of elements and therefore cause a malloc.
APInt on the other hand supports up to 64 bits without a malloc. That's the maximum number of bits we need here so we can avoid a malloc for all cases by using APInt.
Reviewers: RKSimon
Reviewed By: RKSimon
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D30392
llvm-svn: 296355
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/tools/lldb-server/main.cpp')
0 files changed, 0 insertions, 0 deletions