[llvm] [ThinLTO] Reduce the number of renaming due to promotions in distribu… (PR #188074)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 08:13:09 PDT 2026
================
@@ -0,0 +1,70 @@
+; This is to test the support for avoiding always renaming in distributed mode,
+; and ensure that one copy is still renamed despite having different GUIDs.
+
+; RUN: rm -rf %t
+; RUN: mkdir -p %t
+; RUN: split-file %s %t
+
+; RUN: opt -thinlto-bc %t/a.ll -o %t/a.bc
+; RUN: opt -thinlto-bc %t/b.ll -o %t/b.bc
+;
+; RUN: llvm-lto2 run %t/a.bc %t/b.bc \
+; RUN: -thinlto-distributed-indexes \
+; RUN: --whole-program-visibility-enabled-in-lto=true \
+; RUN: -always-rename-promoted-locals=false \
----------------
teresajohnson wrote:
Suggest checking the llvm-dis on a.bc.thinlto.bc too for the presence of the record and import as declaration flag, then have another set of RUN lines without -always-rename-promoted-locals=false and confirm it isn't there.
https://github.com/llvm/llvm-project/pull/188074
More information about the llvm-commits
mailing list