[llvm] CodeGen: Prefer getting the Triple from the Module when convenient (PR #228429)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 2 07:22:01 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 154627 tests passed
* 3463 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.tools/llvm-exegesis/X86/print-assembled-snippet.s</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-exegesis --mtriple=x86_64-linux-gnu --mcpu=x86-64 --benchmark-phase=prepare-and-assemble-snippet --snippets-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-exegesis/X86/print-assembled-snippet.s --mode=latency --repetition-mode=duplicate | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-exegesis/X86/print-assembled-snippet.s --check-prefix=CHECK-LINUX
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-exegesis --mtriple=x86_64-linux-gnu --mcpu=x86-64 --benchmark-phase=prepare-and-assemble-snippet --snippets-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-exegesis/X86/print-assembled-snippet.s --mode=latency --repetition-mode=duplicate
# 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/llvm/test/tools/llvm-exegesis/X86/print-assembled-snippet.s --check-prefix=CHECK-LINUX
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-exegesis --mtriple=x86_64-windows-gnu --mcpu=x86-64 --benchmark-phase=prepare-and-assemble-snippet --snippets-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-exegesis/X86/print-assembled-snippet.s --mode=latency --repetition-mode=duplicate | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-exegesis/X86/print-assembled-snippet.s --check-prefix=CHECK-WINDOWS-GNU
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-exegesis --mtriple=x86_64-windows-gnu --mcpu=x86-64 --benchmark-phase=prepare-and-assemble-snippet --snippets-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-exegesis/X86/print-assembled-snippet.s --mode=latency --repetition-mode=duplicate
# .---command stderr------------
# | llvm-exegesis: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:5324: void llvm::AsmPrinter::emitCOFFFeatureSymbol(Module &): Assertion `TT.isOSBinFormatCOFF()' failed.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0. Program arguments: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-exegesis --mtriple=x86_64-windows-gnu --mcpu=x86-64 --benchmark-phase=prepare-and-assemble-snippet --snippets-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-exegesis/X86/print-assembled-snippet.s --mode=latency --repetition-mode=duplicate
# | #0 0x00000000025d2b0b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:931:13
# | #1 0x00000000025cf8a1 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x00000000025d354b SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:474:38
# | #3 0x00007b9a675abcb0 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x45cb0)
# | #4 0x00007b9a6760c1ac pthread_kill (/usr/lib/x86_64-linux-gnu/libc.so.6+0xa61ac)
# | #5 0x00007b9a675abb7e raise (/usr/lib/x86_64-linux-gnu/libc.so.6+0x45b7e)
# | #6 0x00007b9a6758e8ec abort (/usr/lib/x86_64-linux-gnu/libc.so.6+0x288ec)
# | #7 0x00007b9a6758f979 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29979)
# | #8 0x00007b9a675a1f75 __assert_fail (/usr/lib/x86_64-linux-gnu/libc.so.6+0x3bf75)
# | #9 0x0000000003441e93 (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-exegesis+0x3441e93)
# | #10 0x00000000026351ee llvm::X86AsmPrinter::emitStartOfAsmFile(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/X86/X86AsmPrinter.cpp:965:5
# | #11 0x000000000342bd0e llvm::AsmPrinter::doInitialization(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:563:7
# | #12 0x000000000468e348 llvm::FPPassManager::doInitialization(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1480:13
# | #13 0x000000000468744c runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1514:13
# | #14 0x000000000468744c llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:533:44
# | #15 0x000000000335ad41 llvm::exegesis::assembleToStream(llvm::exegesis::ExegesisTarget const&, std::unique_ptr<llvm::TargetMachine, std::default_delete<llvm::TargetMachine>>, llvm::ArrayRef<llvm::MCRegister>, std::function<void (llvm::exegesis::FunctionFiller&)> const&, llvm::raw_pwrite_stream&, llvm::exegesis::BenchmarkKey const&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llvm-exegesis/lib/Assembler.cpp:339:53
# | #16 0x0000000003352f2c llvm::exegesis::BenchmarkRunner::assembleSnippet(llvm::exegesis::BenchmarkCode const&, llvm::exegesis::SnippetRepetitor const&, unsigned int, unsigned int, bool) const /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp:686:17
# | #17 0x0000000003353538 takeError /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:614:15
# | #18 0x0000000003353538 llvm::exegesis::BenchmarkRunner::getRunnableConfiguration(llvm::exegesis::BenchmarkCode const&, unsigned int, unsigned int, llvm::exegesis::SnippetRepetitor const&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp:726:27
# | #19 0x000000000249a09a takeError /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:614:15
# | #20 0x000000000249a09a operator()<llvm::exegesis::BenchmarkRunner::RunnableConfiguration> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:1481:18
# | #21 0x000000000249a09a runBenchmarkConfigurations /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llvm-exegesis/llvm-exegesis.cpp:421:19
# | #22 0x000000000249a09a llvm::exegesis::benchmarkMain() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llvm-exegesis/llvm-exegesis.cpp:580:5
# | #23 0x000000000249c0c8 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llvm-exegesis/llvm-exegesis.cpp:0:5
# | #24 0x00007b9a67590601 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2a601)
# | #25 0x00007b9a67590718 __libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2a718)
# | #26 0x00000000024974a5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-exegesis+0x24974a5)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-exegesis/X86/print-assembled-snippet.s --check-prefix=CHECK-WINDOWS-GNU
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-exegesis/X86/print-assembled-snippet.s --check-prefix=CHECK-WINDOWS-GNU
# `-----------------------------
# error: command failed with exit status: 2
--
```
</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/228429
More information about the llvm-commits
mailing list