aboutsummaryrefslogtreecommitdiff
path: root/src/Air.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-09-28 20:33:50 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-09-28 20:33:50 -0700
commit7efc2a06264170632e56256a5fad97e945768056 (patch)
treef96446fade460810afbdf4ccc003be2069e378de /src/Air.zig
parent51a40f9a666085b53353f65f017bcf9bf18daaa3 (diff)
downloadzig-7efc2a06264170632e56256a5fad97e945768056.tar.gz
zig-7efc2a06264170632e56256a5fad97e945768056.zip
AstGen: improved logic for nodeMayNeedMemoryLocation
* `@as` and `@bitCast` no longer unconditionally return `true` from this function; they forward the question to their sub-expression. * fix `@splat` incorrectly being marked as needing a memory location (this function returns a SIMD vector; it definitely does not want a memory location). Makes AstGen generate slightly nicer ZIR, which in turn generates slightly nicer AIR, generating slightly nicer machine code in debug builds. It also means I can procrastinate implementing the bitcast_result_ptr ZIR instruction semantic analysis :^)
Diffstat (limited to 'src/Air.zig')
0 files changed, 0 insertions, 0 deletions