While InstCombine trivially converts that srem into a urem,
it might happen later than wanted, in particular i'd like
for that to happen on https://godbolt.org/z/bwuEmJ test case
early in pipeline, before first instcombine run, just before -mem2reg.
SCEV should recognize this case natively.
This is a pretty verbatim copypasta from InstCombiner::visitSRem()