[all-commits] [llvm/llvm-project] 674713: [CIR] Use zero-initializer for partial array fills...
Andy Kaylor via All-commits
all-commits at lists.llvm.org
Tue Aug 19 12:14:28 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6747139bc2e43ec90ab547c7a10965ced4637d11
https://github.com/llvm/llvm-project/commit/6747139bc2e43ec90ab547c7a10965ced4637d11
Author: Andy Kaylor <akaylor at nvidia.com>
Date: 2025-08-19 (Tue, 19 Aug 2025)
Changed paths:
M clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
M clang/lib/CIR/CodeGen/CIRGenBuilder.h
M clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp
M clang/lib/CIR/Dialect/IR/CIRAttrs.cpp
M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
M clang/test/CIR/CodeGen/array.cpp
A clang/test/CIR/IR/invalid-const-record.cir
M clang/test/CIR/IR/struct.cir
M clang/test/CIR/Lowering/array.cpp
Log Message:
-----------
[CIR] Use zero-initializer for partial array fills (#154161)
If an array initializer list leaves eight or more elements that require
zero fill, we had been generating an individual zero element for every
one of them. This change instead follows the behavior of classic
codegen, which creates a constant structure with the specified elements
followed by a zero-initializer for the trailing zeros.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list