viable/strict/1791264641: [Inductor][CPU] Update the stale cache nodes in ranges fusion (#197155)
- PyTorch: 1958 events in the last 90 days
- PyTorch: 1932th Release in the last 90 days
- Previous: earlier the same day · trunk/a476c633b36df133775c886b3c10b12ad0087d9e: [ROCm] Enable native AsyncTP (#177961)
What happened
Description This is a fix to the issue 195963. The root cause is that the assertion is comparing with a stale (outdated) reference node. The reference node should be updated to the new range. This code simply updates the stale node to the correct one. Also added a test case and simplified the codes by using existing helper function. Related Issue #195963 Test case: TORCHINDUCTOR_FORCE_DISABLE_CACHES=1 python test/in…
Summary assembled by rule from the sources below