[llvm] [SCEV] Strip incorrect code in proving RHS > Start in howManyLT (PR #222878)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 12 09:10:36 PDT 2026


nikic wrote:

I don't think it's incorrect as used here. RHS > Start - 1 is not *equivalent* to RHS >= Start, but it does *imply* it. So you can reason that loop guard P implies RHS > Start - 1 also implies RHS >= Start.

https://github.com/llvm/llvm-project/pull/222878


More information about the llvm-commits mailing list