run peephole to do profile-based optimizations (#33337)
Summary:
We need to run a peephole before constant propagation in the profiling pipeline, so we fold `prim::shape` for inputs with complete tensor types.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33337
Differential Revision: D19905624
Pulled By: Krovatkin
fbshipit-source-id: 80fff067941556053847ddc7afe0fd1c7a89a3ba