[PATCH] D30390: [X86] Use APInt instead of SmallBitVector for tracking Zeroable elements in shuffle lowering

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 26 21:20:57 PST 2017


craig.topper created this revision.

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.


https://reviews.llvm.org/D30390

Files:
  lib/Target/X86/X86ISelLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30390.89836.patch
Type: text/x-patch
Size: 23490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170227/537bb8e6/attachment.bin>


More information about the llvm-commits mailing list