[PyTorch] Avoid move-constructing a List in listConstruct (#49355)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/49355
List's move ctor is a little bit more expensive than you might expect, but we can easily avoid it.
ghstack-source-id: 118624596
Test Plan: Roughly 1% improvement on internal benchmark.
Reviewed By: hlu1
Differential Revision: D25542190
fbshipit-source-id: 08532642c7d1f1604e16c8ebefd1ed3e56f7c919