summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2024-06-10 10:10:33 +0100
committerGitHub <noreply@github.com>2024-06-10 10:10:33 +0100
commitf97bcdbd95c075134b3d928299592c54c96ebaad (patch)
tree5f0cbe644c6f9e6995eff7196166cff9edbbde9a /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent23b8f59f0916982cb0674b6175b7c812b86ffb99 (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