[llvm] [InstCombine] handle (X + A) % Op1 for small X, A (PR #140369)

via llvm-commits llvm-commits at lists.llvm.org
Sat May 17 05:45:16 PDT 2025


DesWurstes wrote:

Okay, I had implemented it there because just above where I added my code, there's optimization for `// For "(X + 1) % Op1" and if (X u< Op1) => (X + 1) == Op1 ? 0 : X + 1 .`. I'll try to improve the code in the pull request you've linked

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


More information about the llvm-commits mailing list