diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2022-01-03 05:51:35 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2022-01-03 05:55:23 +0000 |
commit | a1e62aa75b66e2b25e85fd98f41a8d6134192783 (patch) | |
tree | 870044f35feaeea2cd256b8b971c98a1a4785426 /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 8506c8c13bbe257270d7df69790e7f87605011af (diff) | |
download | llvm-a1e62aa75b66e2b25e85fd98f41a8d6134192783.zip llvm-a1e62aa75b66e2b25e85fd98f41a8d6134192783.tar.gz llvm-a1e62aa75b66e2b25e85fd98f41a8d6134192783.tar.bz2 |
Minor reflow of FloorDivSIOp/CeilDivSIOp folder to limit the number of APInt API calls (NFC)
Cache the result of the comparison in boolean, and check early for 0 to
leverage `(a < 0) == !(a > 0)`.
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions