viable/strict/1789514701: [Inductor] Eliminate no-op self slice_scatter after split (#195608)
- PyTorch: 1016 events in the last 90 days
- PyTorch: 1005th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1789509051: [MPS] fix rand and uniform_ upper-bound rounding (#197081)
What happened
Functionalization can emit split / getitem / slice_scatter chains that write an unchanged split view back to the same range of its original tensor. Recognize this exact no-op and return the base tensor. The rewrite fails closed for symbolic sizes, mismatched dimensions or ranges, non-unit steps, and non-split sources. Pull Request resolved: #195608 Approved by: https://github.com/eellison
Summary assembled by rule from the sources below