[lld] [lld-macho] Add native LTO optimization remark options (PR #213823)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 3 19:58:55 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 4102 tests passed
* 114 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### lld
<details>
<summary>lld.MachO/lto-opt-remarks.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp; mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp
# note: command had no output on stdout or stderr
# executed command: mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp
# 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-as /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/lto-opt-remarks.ll -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-as /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/lto-opt-remarks.ll -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.o
# note: command had no output on stdout or stderr
# RUN: at line 5
ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/Inputs/MacOSX.sdk -lSystem -fatal_warnings -dylib /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.dylib --opt-remarks-filename /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.yaml --opt-remarks-passes inline --opt-remarks-with-hotness --opt-remarks-hotness-threshold 300
# executed command: ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/Inputs/MacOSX.sdk -lSystem -fatal_warnings -dylib /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.dylib --opt-remarks-filename /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.yaml --opt-remarks-passes inline --opt-remarks-with-hotness --opt-remarks-hotness-threshold 300
# note: command had no output on stdout or stderr
# RUN: at line 10
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/lto-opt-remarks.ll --check-prefix=REMARK < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.yaml
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/lto-opt-remarks.ll --check-prefix=REMARK
# note: command had no output on stdout or stderr
# RUN: at line 11
ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/Inputs/MacOSX.sdk -lSystem -fatal_warnings -dylib /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/threshold.dylib --opt-remarks-filename /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/threshold.yaml --opt-remarks-with-hotness --opt-remarks-hotness-threshold 301
# executed command: ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/Inputs/MacOSX.sdk -lSystem -fatal_warnings -dylib /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/threshold.dylib --opt-remarks-filename /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/threshold.yaml --opt-remarks-with-hotness --opt-remarks-hotness-threshold 301
# note: command had no output on stdout or stderr
# RUN: at line 15
count 0 < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/threshold.yaml
# executed command: count 0
# note: command had no output on stdout or stderr
# RUN: at line 16
ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/Inputs/MacOSX.sdk -lSystem -fatal_warnings -dylib /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/filtered.dylib --opt-remarks-filename /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/filtered.yaml --opt-remarks-passes does-not-match
# executed command: ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/Inputs/MacOSX.sdk -lSystem -fatal_warnings -dylib /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/filtered.dylib --opt-remarks-filename /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/filtered.yaml --opt-remarks-passes does-not-match
# note: command had no output on stdout or stderr
# RUN: at line 19
count 0 < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/filtered.yaml
# executed command: count 0
# note: command had no output on stdout or stderr
# RUN: at line 21
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -module-summary /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/lto-opt-remarks.ll -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/thin.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -module-summary /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/lto-opt-remarks.ll -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/thin.o
# note: command had no output on stdout or stderr
# RUN: at line 22
ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/Inputs/MacOSX.sdk -lSystem -fatal_warnings -dylib /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/thin.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/thin.dylib --opt-remarks-filename=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/thin.yaml --opt-remarks-passes=inline --opt-remarks-format=yaml
# executed command: ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/Inputs/MacOSX.sdk -lSystem -fatal_warnings -dylib /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/thin.o -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/thin.dylib --opt-remarks-filename=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/thin.yaml --opt-remarks-passes=inline --opt-remarks-format=yaml
# note: command had no output on stdout or stderr
# RUN: at line 26
cat /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/thin.yaml.thin.*.yaml | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/lto-opt-remarks.ll --check-prefix=THIN
# executed command: cat '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/thin.yaml.thin.*.yaml'
# 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/lld/test/MachO/lto-opt-remarks.ll --check-prefix=THIN
# note: command had no output on stdout or stderr
# RUN: at line 28
not ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/Inputs/MacOSX.sdk -lSystem -fatal_warnings -dylib /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.o -o /dev/null --opt-remarks-hotness-threshold=invalid 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/lto-opt-remarks.ll --check-prefix=ERR
# executed command: not ld64.lld -arch x86_64 -platform_version macos 11.0 11.0 -syslibroot /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/Inputs/MacOSX.sdk -lSystem -fatal_warnings -dylib /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lld/test/MachO/Output/lto-opt-remarks.ll.tmp/full.o -o /dev/null --opt-remarks-hotness-threshold=invalid
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lld/test/MachO/lto-opt-remarks.ll --check-prefix=ERR
# note: command had no output on stdout or stderr
--
```
</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/213823
More information about the llvm-commits
mailing list