[PyTorch] Save refcount decrements in StaticRuntime::deallocate_registers (#48859)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/48859
Code comment should explain what's going on. If not, please request changes.
ghstack-source-id: 117889942
Test Plan: Internal benchmarks
Reviewed By: hlu1
Differential Revision: D25288842
fbshipit-source-id: 6bddebb99c4744e2f7aceb279fdf995821404606