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 /clang/test/Sema/integer-overflow.c | |
| parent | cdf8c81127f45d070d331126e9cb9d7d39759037 (diff) | |
| download | llvm-864a363e8f4e2ea59cd4c9a6561ab0707546f6ce.zip llvm-864a363e8f4e2ea59cd4c9a6561ab0707546f6ce.tar.gz llvm-864a363e8f4e2ea59cd4c9a6561ab0707546f6ce.tar.bz2 | |
[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 'clang/test/Sema/integer-overflow.c')
0 files changed, 0 insertions, 0 deletions
