[llvm] Revert "Revert "[AMDGPU][LTO] Assume closed world after linking (#105845)" (#106000)" (PR #106001)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 25 14:38:45 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x64-windows-msvc` running on `windows-gcebot2` while building `llvm` at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/63/builds/1213

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/clang-windows.py ...' (failure)
...
  Passed           : 37748 (99.09%)
  Expectedly Failed:    34 (0.09%)
[94/95] Running the LLVM regression tests
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using ld.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using lld-link: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\lld-link.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using ld64.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld64.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using wasm-ld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\wasm-ld.exe
-- Testing: 54702 tests, 32 workers --
Testing: 
FAIL: LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll (1 of 54702)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe -O3 -debug-only=amdgpu-attributor -S -o - C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe' -O3 -debug-only=amdgpu-attributor -S -o - 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' --check-prefix=PRE-LINK
# .---command stderr------------
# | C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll:8:13: error: PRE-LINK: expected string not found in input
# | ; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
# |             ^
# | <stdin>:1:1: note: scanning from here
# | opt.exe: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe --help'
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          1: opt.exe: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe --help' 
# | check:8     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |          2: opt.exe: Did you mean '--debug-pass=amdgpu-attributor'? 
# | check:8     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Step 8 (stage 1 check) failure: stage 1 check (failure)
...
  Passed           : 37748 (99.09%)
  Expectedly Failed:    34 (0.09%)
[94/95] Running the LLVM regression tests
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using ld.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using lld-link: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\lld-link.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using ld64.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld64.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using wasm-ld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\wasm-ld.exe
-- Testing: 54702 tests, 32 workers --
Testing: 
FAIL: LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll (1 of 54702)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe -O3 -debug-only=amdgpu-attributor -S -o - C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe' -O3 -debug-only=amdgpu-attributor -S -o - 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' --check-prefix=PRE-LINK
# .---command stderr------------
# | C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll:8:13: error: PRE-LINK: expected string not found in input
# | ; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
# |             ^
# | <stdin>:1:1: note: scanning from here
# | opt.exe: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe --help'
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          1: opt.exe: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe --help' 
# | check:8     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |          2: opt.exe: Did you mean '--debug-pass=amdgpu-attributor'? 
# | check:8     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 

```

</details>

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


More information about the llvm-commits mailing list