summaryrefslogtreecommitdiffstats
path: root/clang/tools/scan-build-py/libscanbuild/arguments.py
diff options
context:
space:
mode:
authorMichael Zolotukhin <mzolotukhin@apple.com>2017-03-20 06:33:07 +0000
committerMichael Zolotukhin <mzolotukhin@apple.com>2017-03-20 06:33:07 +0000
commitc69955c6f38a33e11576522d5a7a9eb2e8bd581e (patch)
tree8800bb44dc0f7559c106d2bf1a638b84f27fe723 /clang/tools/scan-build-py/libscanbuild/arguments.py
parentb5c2bfa86994ddbfa138949829957e08cbe507f4 (diff)
downloadbcm5719-llvm-c69955c6f38a33e11576522d5a7a9eb2e8bd581e.tar.gz
bcm5719-llvm-c69955c6f38a33e11576522d5a7a9eb2e8bd581e.zip
[ConstantRange] Add setSizeSmallerThanOf method.
Summary: ConstantRange class currently has a method getSetSize, which is mostly used to compare set sizes of two constant ranges (there is only one spot where it's used in a slightly different scenario). This patch introduces setSizeSmallerThanOf method, which does such comparison in a more efficient way. In the original method we have to extend our types to (BitWidth+1), which can result it using slow case of APInt, extra memory allocations, etc. The change is supposed to not change any functionality, but it slightly improves compile time. Here is compile time improvements that I observed on CTMark: * tramp3d-v4 -2.02% * pairlocalalign -1.82% * lencod -1.67% Reviewers: sanjoy, atrick, pete Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D31104 llvm-svn: 298236
Diffstat (limited to 'clang/tools/scan-build-py/libscanbuild/arguments.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud