Do some simplifications common to all shift instructions based on the amount shifted.
Note that we could generalize the shift-by-zero transform into a shift-by-constant if all of the valid bits in the shift amount are known, but I think that would have to be done in InstCombine rather than here because it would mean we need to create a new shift instruction.
Is this still true? I might have changed this recently...