diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-03-14 00:10:35 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-14 00:11:46 -0700 |
| commit | b2a1b4c085b93d508c51307f40444252b8cd4d52 (patch) | |
| tree | 307c504b85c9aee16602e667db1a5db5c25e1fff /src/codegen | |
| parent | eee989d2a00f99d95900515b48f981f2ea6bbe78 (diff) | |
| download | zig-b2a1b4c085b93d508c51307f40444252b8cd4d52.tar.gz zig-b2a1b4c085b93d508c51307f40444252b8cd4d52.zip | |
Sema: improve lowering of stores to bitcasted vector pointers
Detect if we are storing an array operand to a bitcasted vector pointer.
If so, we instead reach through the bitcasted pointer to the vector pointer,
bitcast the array operand to a vector, and then lower this as a store of
a vector value to a vector pointer. This generally results in better code,
as well as working around an LLVM bug.
See #11154
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
