Project

General

Profile

« Previous | Next » 

Revision c70c1d2a

Added by jeremyevans (Jeremy Evans) almost 2 years ago

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).