[llvm] [ThinLTO] Don't mark calloc function dead (PR #72673)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 06:52:28 PST 2023


================
@@ -54,6 +54,10 @@ static const char *PreservedSymbols[] = {
     // TODO: Are there similar such variables?
     "__ssp_canary_word",
     "__stack_chk_guard",
+    // The dead store elimination pass can fold malloc + memset calls into
+    // a single call to calloc. Prevent thin LTO from marking calloc a dead
----------------
teresajohnson wrote:

I think this comment is not addressed.

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


More information about the llvm-commits mailing list