[llvm-branch-commits] [clang] [Clang][ThinLTO] Wire up AllocToken pass to run in ThinLTO backend (PR #169244)

Marco Elver via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Nov 23 14:26:53 PST 2025


https://github.com/melver updated https://github.com/llvm/llvm-project/pull/169244

>From 65cf04736d27a3ed30cc77de54492334f1d83e90 Mon Sep 17 00:00:00 2001
From: Marco Elver <elver at google.com>
Date: Sun, 23 Nov 2025 23:26:42 +0100
Subject: [PATCH] fix test

Created using spr 1.3.8-beta.1
---
 clang/test/CodeGen/memprof-pgho-thinlto.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/test/CodeGen/memprof-pgho-thinlto.cpp b/clang/test/CodeGen/memprof-pgho-thinlto.cpp
index 4a9746b86c3c4..3cde4a25349d4 100644
--- a/clang/test/CodeGen/memprof-pgho-thinlto.cpp
+++ b/clang/test/CodeGen/memprof-pgho-thinlto.cpp
@@ -5,11 +5,11 @@
 // RUN: llvm-profdata merge %t/memprof.yaml -o %t/use.memprofdata
 //
 // RUN: %clangxx -O2 -flto=thin -g -fmemory-profile-use=%t/use.memprofdata %t/src.cpp -c -o %t.o
-// RUN: llvm-lto2 run %t.o -supports-hot-cold-new -r=%t.o,main,plx -r=%t.o,_Z3foov,plx -r=%t.o,_Znam, -o %t.out
+// RUN: llvm-lto2 run %t.o -thinlto-distributed-indexes -supports-hot-cold-new -r=%t.o,main,plx -r=%t.o,_Z3foov,plx -r=%t.o,_Znam, -o %t.out
 // RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.o.thinlto.bc -mllvm -optimize-hot-cold-new -emit-llvm -o - 2>&1 | FileCheck %s --check-prefixes=CHECK,DEFAULT
 //
 // RUN: %clangxx -O2 -flto=thin -g -fsanitize=alloc-token -fmemory-profile-use=%t/use.memprofdata %t/src.cpp -c -o %t.o
-// RUN: llvm-lto2 run %t.o -supports-hot-cold-new -r=%t.o,main,plx -r=%t.o,_Z3foov,plx -r=%t.o,_Znam, -o %t.out
+// RUN: llvm-lto2 run %t.o -thinlto-distributed-indexes -supports-hot-cold-new -r=%t.o,main,plx -r=%t.o,_Z3foov,plx -r=%t.o,_Znam, -o %t.out
 // RUN: %clang_cc1 -O2 -x ir %t.o -fsanitize=alloc-token -fthinlto-index=%t.o.thinlto.bc -mllvm -optimize-hot-cold-new -emit-llvm -o - 2>&1 | FileCheck %s --check-prefixes=CHECK,ALLOCTOKEN
 
 //--- memprof.yaml



More information about the llvm-branch-commits mailing list