diff options
| author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2026-02-18 02:34:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-17 17:34:53 -0800 |
| commit | 3210e2013eded053a43bfad0e212fc0eff99fee0 (patch) | |
| tree | 47b3ec9cf925c7ff7bc3803a516a279942292de9 /libc/test/src/wchar/wcspbrk_test.cpp | |
| parent | 63db233b3891412368189ddc7fcea8a38d9c3749 (diff) | |
| download | llvm-main.zip llvm-main.tar.gz llvm-main.tar.bz2 | |
CIRGen emits cir.const + cir.store for aggregate initialization, keeping
closer to source-level semantics. LoweringPrepare transforms stores of
constant aggregates (arrays, records) into cir.global + cir.get_global +
cir.copy, matching OG codegen's shouldCreateMemCpyFromGlobal
optimization.
The transform only applies to stores targeting cir.alloca (local
variables inside cir.func). Stores in other contexts (e.g. OpenACC
reduction recipe init blocks, base class initialization) are left as
cir.const + cir.store.
Also fixes CopyOp lowering to use i64 for the memcpy length instead of
i32, matching OG codegen behavior.
Diffstat (limited to 'libc/test/src/wchar/wcspbrk_test.cpp')
0 files changed, 0 insertions, 0 deletions
