diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-20 18:16:02 +0000 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-20 18:16:02 +0000 |
commit | 00b5ecab5d8133fe437cf4668b46cb5d2716447f (patch) | |
tree | ea3416a1252194a9877e6e9cf48d64a35510da49 /llvm/docs/CompileCudaWithLLVM.rst | |
parent | 769c2459d5c201d98c9e96c868dae94e4c7ec1a2 (diff) | |
download | bcm5719-llvm-00b5ecab5d8133fe437cf4668b46cb5d2716447f.tar.gz bcm5719-llvm-00b5ecab5d8133fe437cf4668b46cb5d2716447f.zip |
[ValueTracking] Compute range for abs without nsw
This is a small followup to D59511. The code that was moved into
computeConstantRange() there is a bit overly conversative: If the
abs is not nsw, it does not compute any range. However, abs without
nsw still has a well-defined contiguous unsigned range from 0 to
SIGNED_MIN. This is a lot less useful than the usual 0 to SIGNED_MAX
range, but if we're already here we might as well specify it...
Differential Revision: https://reviews.llvm.org/D59563
llvm-svn: 356586
Diffstat (limited to 'llvm/docs/CompileCudaWithLLVM.rst')
0 files changed, 0 insertions, 0 deletions