[PATCH] D27294: Factor out common parts of LVI and Float2Int into ConstantRange [NFCI]
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 30 22:28:24 PST 2016
reames created this revision.
reames added reviewers: jmolloy, sanjoy, apilipenko.
reames added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.
This just extracts out the transfer rules for constant ranges into a single shared point. As it happens, neither bit of code actually overlaps in terms of the handled operators, but with this change that could easily be tweaked in the future.
I also want to have this separated out to make experimenting with a eager value info implementation and possibly a ValueTracking-like fixed depth recursion peephole version. There's no reason all four of these can't share a common implementation which reduces the chances of bugs.
https://reviews.llvm.org/D27294
Files:
include/llvm/IR/ConstantRange.h
lib/Analysis/LazyValueInfo.cpp
lib/IR/ConstantRange.cpp
lib/Transforms/Scalar/Float2Int.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27294.79867.patch
Type: text/x-patch
Size: 9915 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161201/600db2d2/attachment.bin>
More information about the llvm-commits
mailing list