[llvm] [NFC][ThinLTO] Check that refs between split modules have the same GUID (PR #182982)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 24 08:03:12 PST 2026
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/182982
>From c2abc108608864f850cd569438718fbb4689e2c3 Mon Sep 17 00:00:00 2001
From: Mircea Trofin <mtrofin at google.com>
Date: Mon, 23 Feb 2026 18:07:27 -0800
Subject: [PATCH] [NFC][ThinLTO] Check that refs between split modules have the
same GUID
---
.../test/Transforms/ThinLTOBitcodeWriter/split-internal2.ll | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal2.ll b/llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal2.ll
index df571b3a30017..dee741b084743 100644
--- a/llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal2.ll
+++ b/llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal2.ll
@@ -8,6 +8,7 @@
; RUN: llvm-bcanalyzer -dump %t0 | FileCheck --check-prefix=BCA0 %s
; RUN: llvm-bcanalyzer -dump %t1 | FileCheck --check-prefix=BCA1 %s
+
target triple = "x86_64-unknown-linux-gnu"
; ERROR: llvm-modextract: error: module index out of range; bitcode file contains 2 module(s)
@@ -33,3 +34,8 @@ define internal void @f2() {
; M1: !0 = !{i32 0, !"typeid"}
!0 = !{i32 0, !"typeid"}
+
+; test that the GUID of f.<hash> is the same in the summaries of the 2 split
+; modules
+; M0: = gv: (name: "f.13757e0fb71915e385efa4dc9d1e08fd", {{.*}} ; guid = 11302379072751562722
+; M1: = gv: (name: "f.13757e0fb71915e385efa4dc9d1e08fd") ; guid = 11302379072751562722
More information about the llvm-commits
mailing list