diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-02-24 18:31:04 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-02-24 18:31:04 +0000 |
commit | cdf2bd656a68b614a2224d69072f43690b5141d2 (patch) | |
tree | abbb2a37bd01ef815b2976005c000bb2b4635f76 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | b078439250daafafa7e0ac01b11beed071566d5b (diff) | |
download | bcm5719-llvm-cdf2bd656a68b614a2224d69072f43690b5141d2.tar.gz bcm5719-llvm-cdf2bd656a68b614a2224d69072f43690b5141d2.zip |
Revert: r296141 [APInt] Add APInt::extractBits() method to extract APInt subrange
The current pattern for extract bits in range is typically:
Mask.lshr(BitOffset).trunc(SubSizeInBits);
Which can be particularly slow for large APInts (MaskSizeInBits > 64) as they require the allocation of memory for the temporary variable.
This is another of the compile time issues identified in PR32037 (see also D30265).
This patch adds the APInt::extractBits() helper method which avoids the temporary memory allocation.
Differential Revision: https://reviews.llvm.org/D30336
llvm-svn: 296147
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions