[nnc] Updated IRMutator and IRSimplifier to perform in-place mutations. (#63246)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/63246
Test Plan: Imported from OSS
Reviewed By: ZolotukhinM
Differential Revision: D30309636
Pulled By: navahgar
fbshipit-source-id: 409ea8d6982888cfee9127e6248044dd2ed9d8d4