[PATCH] D71011: [ConstantRange] Add `shlWithNoWrap()` method
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 4 06:53:17 PST 2019
lebedev.ri updated this revision to Diff 232121.
lebedev.ri added a comment.
Simplify `nsw` all-wrap detection - we only need to check the `.back()` value
returned by `getClosestToZero()` - either there was a single value to begin with
and we are good either way, or there were two values and we are looking at the negative one.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71011/new/
https://reviews.llvm.org/D71011
Files:
llvm/include/llvm/IR/ConstantRange.h
llvm/lib/IR/ConstantRange.cpp
llvm/unittests/IR/ConstantRangeTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71011.232121.patch
Type: text/x-patch
Size: 5036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191204/3ef66db1/attachment.bin>
More information about the llvm-commits
mailing list