Update Freezing Logic and add new passes (#68024)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/68024
Pull Request resolved: #67949
Test Plan: Imported from OSS
Reviewed By: zou3519
Differential Revision: D32260614
Pulled By: eellison
fbshipit-source-id: 41d7a9b45e33297a17560a22eba8973e2fc48b43