Clear profiling information timely and appropriately (#35814)
Summary:
Clear profiling information before it gets used by passes before guard insertion.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35814
Differential Revision: D20800599
Pulled By: Krovatkin
fbshipit-source-id: 978d71c22e1880dc888e7e75e7c25501c573333f