[llvm] [IR][DSE] Support non-malloc functions in malloc+memset->calloc fold (PR #138299)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat May 10 13:05:58 PDT 2025
================
@@ -2028,9 +2028,18 @@ struct DSEState {
if (!InnerCallee)
return false;
LibFunc Func;
+ std::optional<StringRef> ZeroedVariantName = std::nullopt;
----------------
nikic wrote:
```suggestion
StringRef ZeroedVariantName;
```
I think it would be a bit simpler to use the empty string as the sentinel here. But I'm ok either way.
https://github.com/llvm/llvm-project/pull/138299
More information about the llvm-commits
mailing list