Move custom passes to last optimization step (#29256)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29256
..
Test Plan: ..
Reviewed By: ZolotukhinM
Differential Revision: D18340212
fbshipit-source-id: 30f4850c8a21bdab42c7cf04b4b92b1787449ee2