[all-commits] [llvm/llvm-project] 28ad00: [ThinLTO] Don't mark calloc function dead (#72673)
eleviant via All-commits
all-commits at lists.llvm.org
Thu Nov 30 10:02:41 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 28ad007927a4126e12b7aec7daa7f10bc1e29ae1
https://github.com/llvm/llvm-project/commit/28ad007927a4126e12b7aec7daa7f10bc1e29ae1
Author: eleviant <56861949+eleviant at users.noreply.github.com>
Date: 2023-11-30 (Thu, 30 Nov 2023)
Changed paths:
M lld/test/ELF/lto/libcall-archive-calloc.ll
M llvm/include/llvm/IR/RuntimeLibcalls.def
M llvm/test/ThinLTO/X86/builtin-nostrip.ll
Log Message:
-----------
[ThinLTO] Don't mark calloc function dead (#72673)
Dead store elimination pass may fold malloc + memset calls into a single
call to calloc. If calloc is not preserved and is not being called
it can be marked dead which results in link error.
More information about the All-commits
mailing list