[clang] [llvm] [LTOBackend] Add -filter-print-modules= for save-temps to only dump specific modules. (PR #175696)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 12 18:24:34 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 129364 tests passed
* 2862 tests skipped
* 1 test failed

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

### Clang
<details>
<summary>Clang.CodeGen/thinlto-savetemps-mod.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\Output\thinlto-savetemps-mod.ll.tmp.dir
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\Output\thinlto-savetemps-mod.ll.tmp.dir'
# note: command had no output on stdout or stderr
# RUN: at line 2
split-file C:\_work\llvm-project\llvm-project\clang\test\CodeGen\thinlto-savetemps-mod.ll C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\Output\thinlto-savetemps-mod.ll.tmp.dir && cd C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\Output\thinlto-savetemps-mod.ll.tmp.dir
# executed command: split-file 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\thinlto-savetemps-mod.ll' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\Output\thinlto-savetemps-mod.ll.tmp.dir'
# note: command had no output on stdout or stderr
# executed command: cd 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\Output\thinlto-savetemps-mod.ll.tmp.dir'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -c -flto=thin -O2  mymul.cpp  -o mymul.o
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -c -flto=thin -O2 mymul.cpp -o mymul.o
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -c -flto=thin -O2  myfoo.cpp  -o myfoo.o
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -c -flto=thin -O2 myfoo.cpp -o myfoo.o
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\clang.exe  -shared -O2 -flto=thin mymul.o myfoo.o   -o libmy.so -Wl,-plugin-opt=save-temps -Wl,-plugin-opt=-filter-print-modules=mymul
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -shared -O2 -flto=thin mymul.o myfoo.o -o libmy.so -Wl,-plugin-opt=save-temps -Wl,-plugin-opt=-filter-print-modules=mymul
# .---command stderr------------
# | clang: error: LTO requires -fuse-ld=lld
# `-----------------------------
# 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/175696


More information about the cfe-commits mailing list