The shift argument is defined to be modulo the bitwidth, so if that argument is a constant, we can always reduce the constant to its minimal form to allow better CSE and other follow-on transforms.
There was already a test that shows a follow-on simplification, so I assume we just had not made our way around to adding this transform yet.