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 /llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp | |
| parent | 3917ca2af4c4af6c5804c4e60c9163b88bef76fc (diff) | |
| download | llvm-7502119ce8b2be4d8996ab004e90074bd49d9d45.zip llvm-7502119ce8b2be4d8996ab004e90074bd49d9d45.tar.gz llvm-7502119ce8b2be4d8996ab004e90074bd49d9d45.tar.bz2 | |
[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 'llvm/lib/DebugInfo/CodeView/ModuleSubstream.cpp')
0 files changed, 0 insertions, 0 deletions
