[llvm] [InstCombine] Preserve range information for `Op0 -nsw umin(X, Op0) --> usub.sat(Op0, X)` (PR #170989)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 6 10:00:39 PST 2025


dtcxzyw wrote:

Wait. I double-checked the original pattern and found that umin has multiple users. This means we never go through this path. This fold should be implemented in visitICmp.


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


More information about the llvm-commits mailing list