After D157690 we are seeing some crashes from Global ISel, which seem to be related to the shift_of_shifted_logic_chain combine that can remove too many instructions if the shift amount is zero. See https://godbolt.org/z/8Y4vd81TT.
This limits the fold to non-zero shifts, under the assumption that it is better then to fold the shift to a COPY.