[llvm] [BOLT][AArch64] Fix perf2bolt-spe test (PR #162312)

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 7 09:05:37 PDT 2025


https://github.com/paschalis-mpeis created https://github.com/llvm/llvm-project/pull/162312

Lit recently started failing on some machines when using a subshell. The test used a subshell to handle kernels where SPE's brstack option is unavailable (<6.14), but it appears to work without it now.

Tested with perf 6.8 and 6.17.

>From 8179bda0d5bb24e00463b1e99fdaf61f0dfed902 Mon Sep 17 00:00:00 2001
From: Paschalis Mpeis <paschalis.mpeis at arm.com>
Date: Tue, 7 Oct 2025 16:29:55 +0100
Subject: [PATCH] [BOLT][AArch64] Fix perf2bolt-spe test

Lit recently started failing on some machines when using a subshell.
The test used a subshell to handle kernels where SPE's brstack option is
unavailable (<6.14), but it appears to work without it now.

Tested with perf 6.8 and 6.17.
---
 bolt/test/perf2bolt/AArch64/perf2bolt-spe.test | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bolt/test/perf2bolt/AArch64/perf2bolt-spe.test b/bolt/test/perf2bolt/AArch64/perf2bolt-spe.test
index 91f5c857fbab0..1f44f7510a9fb 100644
--- a/bolt/test/perf2bolt/AArch64/perf2bolt-spe.test
+++ b/bolt/test/perf2bolt/AArch64/perf2bolt-spe.test
@@ -6,7 +6,6 @@ RUN: %clang %cflags %p/../../Inputs/asm_foo.s %p/../../Inputs/asm_main.c -o %t.e
 
 RUN: perf record -e cycles -q -o %t.perf.data -- %t.exe 2> /dev/null
 
-RUN: (perf2bolt -p %t.perf.data -o %t.perf.boltdata --spe %t.exe 2> /dev/null; exit 0) | FileCheck %s --check-prefix=CHECK-SPE-LBR
+RUN: perf2bolt -p %t.perf.data -o %t.perf.boltdata --spe %t.exe | FileCheck %s --check-prefix=CHECK-SPE-LBR
 
 CHECK-SPE-LBR: PERF2BOLT: parse SPE branch events in LBR-format
-



More information about the llvm-commits mailing list