Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate array allocation for f(1, *a, &lvar) and f(1, *a, &@Iv)
Due to how the compiler works, while f(*a, &lvar) and f(*a, &@Iv) do not allocate an array, but f(1, *a, &lvar) and f(1, *a, &@Iv) do. It's probably possible to fix this in the compiler, but seems easiest to fix this in the peephole optimizer. Eliminating this array allocation is as safe as the current elimination of the array allocation for f(*a, &lvar) and f(*a, &@Iv).
- Loading branch information