diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2023-11-03 16:56:58 -0700 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2023-12-07 11:27:55 -0800 |
| commit | 40a2afd08fe1b921f1052b29031abfa1869e0557 (patch) | |
| tree | 6a96a06873a3120448b594c183685f898ba314bf /include | |
| parent | 41b299d6391261c11025e88b54743bb903606fb3 (diff) | |
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.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
