diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-11-07 21:14:21 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-11-07 21:46:06 +0100 |
commit | 2060895c9ce71bba5a950827167f23ae9eb6eef5 (patch) | |
tree | 70fb7311b7406554ab29bc12b99e68911eb07349 /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | |
parent | cf71a5ea8f95be423ebd381d21d0f9a05edc5018 (diff) | |
download | llvm-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