diff options
author | Nikita Popov <npopov@redhat.com> | 2022-12-06 16:35:24 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-12-06 16:37:43 +0100 |
commit | b04fc99c347058111cfb9313546df95e10c26132 (patch) | |
tree | 77fa8d66d7ac9b1d957c04ba430d84d347b6a4ef /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | |
parent | 5cd900ce3c6edd9e0d9b163c9d6cf7f38688d2ee (diff) | |
download | llvm-b04fc99c347058111cfb9313546df95e10c26132.zip llvm-b04fc99c347058111cfb9313546df95e10c26132.tar.gz llvm-b04fc99c347058111cfb9313546df95e10c26132.tar.bz2 |
[ConstantRange] Fix nsw nowrap region for 1 bit integers (PR59301)
The special case for V=1 was incorrect for one bit types, where
1 is also -1. Remove it, and use getNonEmpty() to handle the full
range case instead.
Adjust the exhaustive nowrap tests to test both 5 bit and 1 bit
types.
Fixes https://github.com/llvm/llvm-project/issues/59301.
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions