ciflow/torchtitan/194833: [inductor] Fix loop-local load CSE lifetime (#194786)
- PyTorch: 68 events in the last 90 days
- PyTorch: 68th Release in the last 90 days
- Previous: earlier the same day · trunk/fcebff2edcedc4a973b6124659b9b7932db725ad: Fix the version gate on the free-threaded profiler warning (#194697)
What happened
Manual cherry-pick of 60598ed ( #194786 ) onto release/2.14. Triton load placement and CSE lifetime used separate heuristics. An indirect load emitted inside a loop could remain cached after loop closure and be reused by an epilogue even though its temporary did not dominate that use. Use the selected load buffer as the source of truth for whether a CSE value survives loop closure, and stop hoisting loads that carry…
Summary assembled by rule from the sources below