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

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 21 08:10:23 PST 2023


================
@@ -0,0 +1,11 @@
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+declare ptr @malloc(i64)
+
+define ptr @_ZnwmRKSt9nothrow_t(i64 %size, ptr %0) {
----------------
teresajohnson wrote:

Is this separate input file needed for the test? Why can't this function be in the main input file, or even have the call to malloc inlined into DoStuff to start with?

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


More information about the llvm-commits mailing list