[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:13:20 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang` at step 5 "ninja check 1".

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

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

```
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: CodeGenHIP/default-attributes.hip' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/lib/clang/20/include -nostdsysteminc -triple amdgcn-amd-amdhsa -x hip -fno-ident -fcuda-is-device     -emit-llvm -o - /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/CodeGenHIP/default-attributes.hip | /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck -check-prefix=OPTNONE /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/CodeGenHIP/default-attributes.hip
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/lib/clang/20/include -nostdsysteminc -triple amdgcn-amd-amdhsa -x hip -fno-ident -fcuda-is-device -emit-llvm -o - /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/CodeGenHIP/default-attributes.hip
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck -check-prefix=OPTNONE /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/CodeGenHIP/default-attributes.hip
RUN: at line 5: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/lib/clang/20/include -nostdsysteminc -O3 -triple amdgcn-amd-amdhsa -x hip -fno-ident -fcuda-is-device     -emit-llvm -o - /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/CodeGenHIP/default-attributes.hip | /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck -check-prefix=OPT /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/CodeGenHIP/default-attributes.hip
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck -check-prefix=OPT /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/CodeGenHIP/default-attributes.hip
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/lib/clang/20/include -nostdsysteminc -O3 -triple amdgcn-amd-amdhsa -x hip -fno-ident -fcuda-is-device -emit-llvm -o - /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/CodeGenHIP/default-attributes.hip
/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/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: /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/CodeGenHIP/default-attributes.hip

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
           19:  
           20: ; Function Attrs: convergent mustprogress norecurse nounwind 
           21: define dso_local amdgpu_kernel void @_Z6kernelv() local_unnamed_addr #2 { 
           22: entry: 
           23:  tail call void @_Z11extern_funcv() #3 
           24:  ret void 
check:63'0              X error: no match found
check:63'1                with "ATTR0" equal to "0"
           25: } 
check:63'0     ~~
           26:  
check:63'0     ~
           27: attributes #0 = { convergent mustprogress nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" } 
check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           28: attributes #1 = { convergent nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" } 
check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           29: attributes #2 = { convergent mustprogress norecurse nounwind "amdgpu-flat-work-group-size"="1,1024" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "uniform-work-group-size"="true" } 
check:63'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
...

```

</details>

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


More information about the cfe-commits mailing list