[all-commits] [llvm/llvm-project] b6088f: [ConstantRange] Handle wrapping range in binaryNot()
Nikita Popov via All-commits
all-commits at lists.llvm.org
Sat Feb 20 12:46:30 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b6088f7465a9a6691d5d237e9c0eb002734da3bf
https://github.com/llvm/llvm-project/commit/b6088f7465a9a6691d5d237e9c0eb002734da3bf
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2021-02-20 (Sat, 20 Feb 2021)
Changed paths:
M llvm/lib/IR/ConstantRange.cpp
M llvm/unittests/IR/ConstantRangeTest.cpp
Log Message:
-----------
[ConstantRange] Handle wrapping range in binaryNot()
We don't need any special handling for wrapping ranges (or empty
ranges for that matter). The sub() call will already compute a
correct and precise range.
We only need to adjust the test expectation: We're now computing
an optimal result, rather than an unsigned envelope.
More information about the All-commits
mailing list