[llvm] Support non-malloc functions in malloc+memset->calloc fold (PR #138299)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri May 2 09:58:20 PDT 2025


https://github.com/nikic commented:

The way to do this is probably to add an extra attribute along the lines of `"alloc-variant-zeroed"="calloc"`?

https://github.com/llvm/llvm-project/pull/138299


More information about the llvm-commits mailing list