[llvm] [SCEV] BECount to zero if `((-1 + (1 smax %x))<nsw> /u %x)` holds (PR #104580)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 06:05:08 PDT 2024


nikic wrote:

> Looks like this generalizes to any positive constant: https://alive2.llvm.org/ce/z/aS3SUe

We don't need nsw as a precondition either, it's implied: https://alive2.llvm.org/ce/z/_dLm8C

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


More information about the llvm-commits mailing list