diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-02-27 16:15:30 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-02-27 16:15:30 +0000 |
commit | 3917ca2af4c4af6c5804c4e60c9163b88bef76fc (patch) | |
tree | f18b826e4cdf50cd5378c943f51e10fdad013bab /lldb/packages/Python/lldbsuite/test/tools/lldb-server/main.cpp | |
parent | e1be95c3d069f7b1a133671e1823d280ec66928e (diff) | |
download | bcm5719-llvm-3917ca2af4c4af6c5804c4e60c9163b88bef76fc.tar.gz bcm5719-llvm-3917ca2af4c4af6c5804c4e60c9163b88bef76fc.zip |
[X86] Use APInt instead of SmallBitVector for tracking Zeroable elements in shuffle lowering
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/D30390
llvm-svn: 296354
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/tools/lldb-server/main.cpp')
0 files changed, 0 insertions, 0 deletions