[Static Runtime] Fuse ListUnpack + gather_ranges_to_dense (#65116)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65116
Fuse `fb::gather_ranges_to_dense` with `prim::ListUnpack`.
```
%0 : Tensor[] = fb::gather_ranges_to_dense(...)
%1: Tensor, %2: Tensor, ... = prim::ListUnpack(%0)
```
turns into:
```
%0: Tensor, %1: Tensor, ... = fb::gather_ranges_to_dense(...)
```
Reviewed By: hlu1
Differential Revision: D30973525
fbshipit-source-id: f0349baa1622b697ee2ab652376a24ec0d89e819