diff options
author | clubby789 <jamie@hill-daniel.co.uk> | 2025-06-04 08:35:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-04 09:35:20 +0200 |
commit | c7c79d259025f0e5edf778a46e03aeb6affd7c73 (patch) | |
tree | f0066601438f302e6ce007d950fedc84db6ee16b /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | b3ce9883f32e3b5b16e2b5fa54c3d98e85b66869 (diff) | |
download | llvm-c7c79d259025f0e5edf778a46e03aeb6affd7c73.zip llvm-c7c79d259025f0e5edf778a46e03aeb6affd7c73.tar.gz llvm-c7c79d259025f0e5edf778a46e03aeb6affd7c73.tar.bz2 |
[IR][DSE] Support non-malloc functions in malloc+memset->calloc fold (#138299)
Add a `alloc-variant-zeroed` function attribute which can be used to
inform folding allocation+memset. This addresses
https://github.com/rust-lang/rust/issues/104847, where LLVM does not
know how to perform this transformation for non-C languages.
Co-authored-by: Jamie <jamie@osec.io>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions