[llvm] [ThinLTO] Don't convert functions to declarations if `force-import-all` is enabled (PR #134541)
Steven Wu via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 09:30:57 PDT 2025
================
@@ -0,0 +1,35 @@
+; RUN: opt -mtriple=amdgcn-amd-amdhsa -module-summary %s -o %t.main.bc
+; RUN: opt -mtriple=amdgcn-amd-amdhsa -module-summary %p/Inputs/in-0.ll -o %t.in.0.bc
+; RUN: opt -mtriple=amdgcn-amd-amdhsa -module-summary %p/Inputs/in-1.ll -o %t.in.1.bc
+; RUN: llvm-lto -thinlto-action=run -force-import-all %t.main.bc %t.in.0.bc %t.in.1.bc --thinlto-save-temps=%t.2.
----------------
cachemeifyoucan wrote:
Don't you just need to run `-thinlto-action=import` instead of running the full pipeline and rely on save-temps?
https://github.com/llvm/llvm-project/pull/134541
More information about the llvm-commits
mailing list