diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-09-28 20:33:50 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-28 20:33:50 -0700 |
| commit | 7efc2a06264170632e56256a5fad97e945768056 (patch) | |
| tree | f96446fade460810afbdf4ccc003be2069e378de /src/codegen/llvm.zig | |
| parent | 51a40f9a666085b53353f65f017bcf9bf18daaa3 (diff) | |
| download | zig-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/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions
