diff options
| author | Cody Tapscott <topolarity@tapscott.me> | 2022-11-10 12:03:17 -0700 |
|---|---|---|
| committer | Cody Tapscott <topolarity@tapscott.me> | 2022-11-10 12:22:40 -0700 |
| commit | a2f4de1663f815ae8c202ba6a8c68b0658b7d23f (patch) | |
| tree | e900f62b506072b35e8d4d106c7948ee6977879c /lib/std/build/CheckObjectStep.zig | |
| parent | 8f3880074fb76871d9a4f35d1f72d0304ac5b404 (diff) | |
| download | zig-a2f4de1663f815ae8c202ba6a8c68b0658b7d23f.tar.gz zig-a2f4de1663f815ae8c202ba6a8c68b0658b7d23f.zip | |
stage2 llvm: Elide more loads
Adds optimizations for by-ref types to:
- .struct_field_val
- .slice_elem_val
- .ptr_elem_val
I would have expected LLVM to be able to optimize away these
temporaries since we don't leak pointers to them and they are fed
straight from def to use, but empirically it does not.
Resolves https://github.com/ziglang/zig/issues/12713
Resolves https://github.com/ziglang/zig/issues/12638
Diffstat (limited to 'lib/std/build/CheckObjectStep.zig')
0 files changed, 0 insertions, 0 deletions
