[all-commits] [llvm/llvm-project] f97bcd: [KnownBits] Speed up ForeachKnownBits in unit test...
Jay Foad via All-commits
all-commits at lists.llvm.org
Mon Jun 10 02:10:54 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f97bcdbd95c075134b3d928299592c54c96ebaad
https://github.com/llvm/llvm-project/commit/f97bcdbd95c075134b3d928299592c54c96ebaad
Author: Jay Foad <jay.foad at amd.com>
Date: 2024-06-10 (Mon, 10 Jun 2024)
Changed paths:
M llvm/unittests/Support/KnownBitsTest.h
Log Message:
-----------
[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
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list