[SCEV] Handle `less` predicates for FoundPred = NE
authorMax Kazantsev <mkazantsev@azul.com>
Tue, 22 Sep 2020 11:44:18 +0000 (18:44 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Tue, 22 Sep 2020 11:56:35 +0000 (18:56 +0700)
commite2703c021d844ea0e5c1b203a4bd534e7a231997
treec6d2f04af2d3035b99a99d8021bdfab290df4f03
parenta3d0dce2608bb399f2bf0122d8c6a4c7b4d6c1fa
[SCEV] Handle `less` predicates for FoundPred = NE

Currently these predicates are ignored, yet their handling is
pretty simple. I could not find a single test where it would
actually change something, but it's only because isImpliedCondOperands
is not smart enough to prove it further on. Yet the situation when
we come there with `less` predicate is pretty common.

Differential Revision: https://reviews.llvm.org/D87890
Reviewed By: fhahn
llvm/lib/Analysis/ScalarEvolution.cpp