Correct index propagation for % (#119864)
The current index propagation transformed % into `fmod`. This was
incorrect. We perform the index propagation in the most common case,
when we it is correct to do it.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119864
Approved by: https://github.com/peterbell10
ghstack dependencies: #119863