[llvm-branch-commits] [compiler-rt] [llvm] [ThinLTO][TypeProfiling]Add annotated vtable GUID as referenced variables in per function summary, and update bitcode writer to create value-ids for these referenced vtables (PR #79234)

Mingming Liu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jan 23 16:49:28 PST 2024


https://github.com/minglotus-6 updated https://github.com/llvm/llvm-project/pull/79234

>From c3bbc12fdedc5399202b295ac6a8db7d29ac0662 Mon Sep 17 00:00:00 2001
From: mingmingl <mingmingl at google.com>
Date: Tue, 23 Jan 2024 16:49:12 -0800
Subject: [PATCH] fix test failure

Created using spr 1.3.4
---
 llvm/test/Bitcode/thinlto-function-summary-vtableref-pgo.ll | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/test/Bitcode/thinlto-function-summary-vtableref-pgo.ll b/llvm/test/Bitcode/thinlto-function-summary-vtableref-pgo.ll
index a23bbad87e049b..f14477cb373f15 100644
--- a/llvm/test/Bitcode/thinlto-function-summary-vtableref-pgo.ll
+++ b/llvm/test/Bitcode/thinlto-function-summary-vtableref-pgo.ll
@@ -1,6 +1,6 @@
 ; RUN: opt -module-summary %s -o %t.o
 
-; RUN llvm-bcanalyzer -dump %t.o | FileCheck %s
+; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s
 
 ; RUN: llvm-dis -o - %t.o | FileCheck %s --check-prefix=DIS
 ; Round trip it through llvm-as
@@ -13,7 +13,7 @@
 ; CHECK-NEXT:   <VALUE_GUID op0=8 op1=1960855528937986108/>
 ; "_ZN4Base4funcEv" referenced by the indirect call instruction.
 ; CHECK-NEXT:   <VALUE_GUID op0=7 op1=5459407273543877811/>
-; CHECK-NEXT:   <PERMODULE abbrevid=5 op0=0 op1=0 op2=4 op3=256 op4=1 op5=1 op6=0 op7=8 op8=7/>
+; CHECK-NEXT:   <PERMODULE_PROFILE abbrevid=4 op0=0 op1=0 op2=4 op3=256 op4=1 op5=1 op6=0 op7=8 op8=7 op9=2/>
 ; CHECK-NEXT:  </GLOBALVAL_SUMMARY_BLOCK>
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"



More information about the llvm-branch-commits mailing list