aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-11-07 21:14:21 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-11-07 21:46:06 +0100
commit2060895c9ce71bba5a950827167f23ae9eb6eef5 (patch)
tree70fb7311b7406554ab29bc12b99e68911eb07349 /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
parentcf71a5ea8f95be423ebd381d21d0f9a05edc5018 (diff)
downloadllvm-2060895c9ce71bba5a950827167f23ae9eb6eef5.zip
llvm-2060895c9ce71bba5a950827167f23ae9eb6eef5.tar.gz
llvm-2060895c9ce71bba5a950827167f23ae9eb6eef5.tar.bz2
[ConstantRange] Add exact union/intersect (NFC)
For some optimizations on comparisons it's necessary that the union/intersect is exact and not a superset. Add methods that return Optional<ConstantRange> only if the result is exact. For the sake of simplicity this is implemented by comparing the subset and superset approximations for now, but it should be possible to do this more directly, as unionWith() and intersectWith() already distinguish the cases where the result is imprecise for the preferred range type functionality.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
0 files changed, 0 insertions, 0 deletions