[clang] [llvm] [DirectX] Remove trivially dead functions at linkage finalize (PR #106146)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 11 13:07:43 PDT 2024


================
@@ -0,0 +1,222 @@
+; RUN: opt -S -dxil-finalize-linkage -mtriple=dxil-unknown-shadermodel6.5-compute %s | FileCheck %s
+; RUN: llc %s --filetype=asm -o - | FileCheck %s
----------------
hekota wrote:

Shouldn't the exported functions stay in the module when it is compiled as a library, even though they are not called?

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


More information about the cfe-commits mailing list