diff options
author | Max Kazantsev <mkazantsev@azul.com> | 2020-10-16 12:00:39 +0700 |
---|---|---|
committer | Max Kazantsev <mkazantsev@azul.com> | 2020-10-16 12:00:39 +0700 |
commit | 905101c36025fe1c8ecdf9a20cd59db036676073 (patch) | |
tree | 549e4f18b65b40d5cee28b22e75d3d57b9bf2d0a /llvm/lib/Support/TargetParser.cpp | |
parent | cc175c2cc8e638462bab74e0781e06f9b6eb5017 (diff) | |
download | llvm-905101c36025fe1c8ecdf9a20cd59db036676073.zip llvm-905101c36025fe1c8ecdf9a20cd59db036676073.tar.gz llvm-905101c36025fe1c8ecdf9a20cd59db036676073.tar.bz2 |
[SCEV] Use nw flag and symbolic iteration count to sharpen ranges of AddRecs
We can sharpen the range of a AddRec if we know that it does not
self-wrap and know the symbolic iteration count in the loop. If we can
evaluate the value of AddRec on the last iteration and prove that at least
one its intermediate value lies between start and end, then no-wrap flag
allows us to conclude that all of them also lie between start and end. So
the estimate of range can be improved to union of ranges of start and end.
Differential Revision: https://reviews.llvm.org/D89381
Reviewed By: efriedma
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions