[clang] clang/AMDGPU: Restore O3 checks in default-attributes.hip (PR #115238)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 7 19:15:10 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang` at step 7 "test-build-unified-tree-check-all".

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

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

```
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: CodeGenHIP/default-attributes.hip' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -internal-isystem Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\20\include -nostdsysteminc -triple amdgcn-amd-amdhsa -x hip -fno-ident -fcuda-is-device     -emit-llvm -o - Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHIP\default-attributes.hip | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe -check-prefix=OPTNONE Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHIP\default-attributes.hip
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -internal-isystem 'Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\20\include' -nostdsysteminc -triple amdgcn-amd-amdhsa -x hip -fno-ident -fcuda-is-device -emit-llvm -o - 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHIP\default-attributes.hip'
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' -check-prefix=OPTNONE 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHIP\default-attributes.hip'
# RUN: at line 5
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -internal-isystem Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\20\include -nostdsysteminc -O3 -triple amdgcn-amd-amdhsa -x hip -fno-ident -fcuda-is-device     -emit-llvm -o - Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHIP\default-attributes.hip | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe -check-prefix=OPT Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHIP\default-attributes.hip
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -internal-isystem 'Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\20\include' -nostdsysteminc -O3 -triple amdgcn-amd-amdhsa -x hip -fno-ident -fcuda-is-device -emit-llvm -o - 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHIP\default-attributes.hip'
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' -check-prefix=OPT 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHIP\default-attributes.hip'
# .---command stderr------------
# | Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHIP\default-attributes.hip:63:9: error: OPT: expected string not found in input
# | // OPT: attributes #[[ATTR0]] = { convergent mustprogress nounwind "amdgpu-waves-per-eu"="4,10" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "uniform-work-group-size"="false" }
# |         ^
# | <stdin>:24:10: note: scanning from here
# |  ret void
# |          ^
# | <stdin>:24:10: note: with "ATTR0" equal to "0"
# |  ret void
# |          ^
# | 
# | Input file: <stdin>
# | Check file: Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHIP\default-attributes.hip
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: ; ModuleID = 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHIP\default-attributes.hip' 
# |             2: source_filename = "Z:\\b\\llvm-clang-x86_64-sie-win\\llvm-project\\clang\\test\\CodeGenHIP\\default-attributes.hip" 
# |             3: target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-p7:160:256:256:32-p8:128:128-p9:192:256:256:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5-G1-ni:7:8:9" 
# |             4: target triple = "amdgcn-amd-amdhsa" 
# |             5:  
# |             6:  at __hip_cuid_ = addrspace(1) global i8 0 
# | check:16       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             7:  at __oclc_ABI_version = weak_odr hidden local_unnamed_addr addrspace(4) constant i32 500 
# | check:17       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             8:  at llvm.compiler.used = appending addrspace(1) global [1 x ptr] [ptr addrspacecast (ptr addrspace(1) @__hip_cuid_ to ptr)], section "llvm.metadata" 
# | check:18       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             9:  
# |            10: ; Function Attrs: convergent mustprogress nounwind 
# | check:29         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            11: define dso_local void @_Z4funcv() local_unnamed_addr #0 { 
# | label:30'0     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | label:30'1     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | same:31'0                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
# | same:31'1                                                            ^    captured var "ATTR0"
...

```

</details>

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


More information about the cfe-commits mailing list