user1342234 wrote: I removed canonicalization for `select` to `smin` and will put it in a seperate PR. The only logic left is a simple non-negative simplifcation with `sub` in `ValueTracking.cpp`. https://github.com/llvm/llvm-project/pull/182597