[PATCH] D67339: [ConstantRange] add helper function addWithNoWrap
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 8 20:00:31 PDT 2019
shchenz created this revision.
shchenz added reviewers: nikic, reames, sanjoy, hfinkel.
Herald added subscribers: llvm-commits, wuzish, hiraditya.
Herald added a project: LLVM.
Currently there is only an add function for constant range without considering wrap flag. It may produce a conservative range.
Add a helper function to consider wrap flag, so we can get a more accurate range.
This is splitted from https://reviews.llvm.org/D64869.
https://reviews.llvm.org/D67339
Files:
llvm/include/llvm/IR/ConstantRange.h
llvm/include/llvm/IR/Operator.h
llvm/lib/IR/ConstantRange.cpp
llvm/unittests/IR/ConstantRangeTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67339.219286.patch
Type: text/x-patch
Size: 9432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190909/dddc5f30/attachment.bin>
More information about the llvm-commits
mailing list