[llvm] [InstCombine] Treat sdiv as udiv in foldICmpDivConstant when both operands are non-negative (PR #188731)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 27 03:13:43 PDT 2026


nikic wrote:

Okay, so the motivating case here is where we don't know it's non-negative at the point of the udiv, but do know at the point of the comparison.

Can you provide any context on where this case shows up in the wild?

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


More information about the llvm-commits mailing list