jayfoad wrote: > [GISel] Combine out-of-range shifts with value to 0 or -1 Should not call these "out-of-range" shifts. They are just shifts that can be folded to a constant based on the known bits of the operands. https://github.com/llvm/llvm-project/pull/123510