diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-05-01 21:56:05 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-05-01 21:56:05 +0000 |
commit | 864a363e8f4e2ea59cd4c9a6561ab0707546f6ce (patch) | |
tree | a42652267764267e7a41f79a89cf6bb4a4ef8ee1 /llvm/lib/IR/ModuleSummaryIndex.cpp | |
parent | cdf8c81127f45d070d331126e9cb9d7d39759037 (diff) | |
download | bcm5719-llvm-864a363e8f4e2ea59cd4c9a6561ab0707546f6ce.tar.gz bcm5719-llvm-864a363e8f4e2ea59cd4c9a6561ab0707546f6ce.zip |
[APInt] In operator!, handle single word case by comparing VAL to 0 directly and handle multiword case by comparing countLeadingZerosSlowCase() to BitWidth.
We were using operator=(0) which implicitly calls countLeadingZeros but only to compare with 64 to determine if we can compare VAL or pVal[0] to uint64_t. By handling the multiword case with countLeadingZerosSlowCase==BitWidth we can prevent a load of pVal[0] from being inserted inline at each call site. This saves a little bit of code size.
llvm-svn: 301842
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
0 files changed, 0 insertions, 0 deletions