Enable reordering pass (#100747)
Restricts the reordering pass to only reorder nodes before the `copy_` epilogue that functionalization generates.
Brings `python benchmarks/dynamo/torchbench.py --performance --backend inductor --amp --inference --only hf_Bert` from 1.46 -> 1.49
Pull Request resolved: https://github.com/pytorch/pytorch/pull/100747
Approved by: https://github.com/jansel