Clamp gather indices instead of wrap-around.
So far, the behavior for out of bounds cases is undefined as long as it does not crash. Clamping is cheaper because we don't need a URem operation, and for DynamicSlice we already do that. PiperOrigin-RevId: 204096995
Loading
Please sign in to comment