diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-07-27 19:14:42 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-08-11 11:08:00 +0200 |
| commit | a5e4fd7ef66bbd16ddad1a12d378eefcb740da1d (patch) | |
| tree | da07a631ac4ca59f6f7912e8867a7e3c8240ff55 /src/arch/arm/CodeGen.zig | |
| parent | 3cd0cd12a08435fca5f5b2b6788ff519abfc6184 (diff) | |
| download | zig-a5e4fd7ef66bbd16ddad1a12d378eefcb740da1d.tar.gz zig-a5e4fd7ef66bbd16ddad1a12d378eefcb740da1d.zip | |
wasm: keep `load` values on the stack
We internally use a lot of `load`'s that used to put
the result in a newly created local. For instance, when is considered
byRef or when we need a specific field/element/bytes from a larger type.
However, sometimes we want to directly use this value and then forget about
it, which means storing it in a local first is wasted instructions as well
as wasted locals that shouldn't be generated in the first place.
With this change it's explicit and requires the usage of `toLocal`.
Diffstat (limited to 'src/arch/arm/CodeGen.zig')
0 files changed, 0 insertions, 0 deletions
