[llvm] [BOLT] Retain certain local symbols (PR #184074)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 00:21:48 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 621 tests passed
* 54 tests skipped
* 2 tests failed

## Failed Tests
(click on a test name to see its output)

### BOLT
<details>
<summary>BOLT.RISCV/mapping-syms-isa.test</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/yaml2obj -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms-isa.test.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/Inputs/mapping-syms-isa.yaml
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/yaml2obj -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms-isa.test.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/Inputs/mapping-syms-isa.yaml
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a --print-cfg --print-only=_start -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms-isa.test.tmp.bolt /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms-isa.test.tmp 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms-isa.test
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a --print-cfg --print-only=_start -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms-isa.test.tmp.bolt /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms-isa.test.tmp
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms-isa.test
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump -d /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms-isa.test.tmp.bolt | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-OBJDUMP /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms-isa.test
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump -d /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms-isa.test.tmp.bolt
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-OBJDUMP /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms-isa.test
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms-isa.test:16:21: error: CHECK-OBJDUMP-NEXT: expected string not found in input
# | CHECK-OBJDUMP-NEXT: unimp
# |                     ^
# | <stdin>:7:17: note: scanning from here
# |  100b0: 0001 nop
# |                 ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms-isa.test
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          1:  
# |          2: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms-isa.test.tmp.bolt: file format elf64-littleriscv 
# |          3:  
# |          4: Disassembly of section .text: 
# |          5:  
# |          6: 00000000000100b0 <_start>: 
# |          7:  100b0: 0001 nop 
# | next:16                     X error: no match found
# |          8:  100b2: 00 00 00 00 .word 0x00000000 
# | next:16     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          9:  100b6: 8082 ret 
# | next:16     ~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>BOLT.RISCV/mapping-syms.s</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple riscv64 -mattr=+c -filetype obj -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp.o /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms.s
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple riscv64 -mattr=+c -filetype obj -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp.o /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms.s
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/ld.lld -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp.o
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a --print-cfg --print-only=_start -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp.bolt /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms.s
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a --print-cfg --print-only=_start -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp.bolt /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms.s
# note: command had no output on stdout or stderr
# RUN: at line 7
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump -d /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp.bolt | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-OBJDUMP /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms.s
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump -d /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp.bolt
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-OBJDUMP /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms.s
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms.s:18:24: error: CHECK-OBJDUMP-NEXT: expected string not found in input
# | // CHECK-OBJDUMP-NEXT: unimp
# |                        ^
# | <stdin>:7:17: note: scanning from here
# |  11120: 0001 nop
# |                 ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/RISCV/mapping-syms.s
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          1:  
# |          2: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/RISCV/Output/mapping-syms.s.tmp.bolt: file format elf64-littleriscv 
# |          3:  
# |          4: Disassembly of section .text: 
# |          5:  
# |          6: 0000000000011120 <_start>: 
# |          7:  11120: 0001 nop 
# | next:18                     X error: no match found
# |          8:  11122: 00 00 00 00 .word 0x00000000 
# | next:18     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          9:  11126: 8082 ret 
# | next:18     ~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/184074


More information about the llvm-commits mailing list