[Inductor] Replace graph.eliminate_dead_code() with graph.erase_node() in Permute Fusion (#91014)
Summary: As FX passes of permute fusion run before functionalization, it might be safer to replace `graph.eliminate_dead_code()` with `graph.erase_node()` to avoid cases that `graph.eliminate_dead_code()` might remove mutation nodes
Test Plan: Unit Tests & CI
Reviewed By: jansel
Differential Revision: D41904755
Pull Request resolved: https://github.com/pytorch/pytorch/pull/91014
Approved by: https://github.com/jansel