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)
Due to how the compiler works, while f(*a) does not allocate an array f(1, *a) does. This is possible to fix in the compiler, but the change is much more complex. This attempts to fix the issue in a simpler way using the peephole optimizer. Eliminating this array allocation is safe, since just as in the f(*a) case, nothing else on the caller side can modify the array.
- Loading branch information