diff options
| author | Jay Foad <jay.foad@amd.com> | 2024-06-10 10:10:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-10 10:10:33 +0100 |
| commit | f97bcdbd95c075134b3d928299592c54c96ebaad (patch) | |
| tree | 5f0cbe644c6f9e6995eff7196166cff9edbbde9a /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 23b8f59f0916982cb0674b6175b7c812b86ffb99 (diff) | |
[KnownBits] Speed up ForeachKnownBits in unit test. NFC. (#94939)
Use fast unsigned arithmetic before constructing an APInt. This gives
me a ~2x speed up when running this in my Release+Asserts build:
$ unittests/Support/SupportTests
--gtest_filter=KnownBitsTest.*Exhaustive
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
