[clang] [llvm] [AMDGPU] Infer amdgpu-no-flat-scratch-init attribute in AMDGPUAttributor (PR #94647)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 4 15:10:17 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all".

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

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

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/attributor-flatscratchinit-globalisel.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt -S -O2 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/attributor-flatscratchinit-globalisel.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -global-isel -stop-after=irtranslator | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck -check-prefixes=GFX10 /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/attributor-flatscratchinit-globalisel.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -global-isel -stop-after=irtranslator
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck -check-prefixes=GFX10 /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/attributor-flatscratchinit-globalisel.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt -S -O2 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/attributor-flatscratchinit-globalisel.ll
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/attributor-flatscratchinit-globalisel.ll:521:15: error: GFX10-NEXT: expected string not found in input
; GFX10-NEXT: kernargSegmentPtr: { reg: '$sgpr6_sgpr7' }
              ^
<stdin>:4864:38: note: scanning from here
 dispatchPtr: { reg: '$sgpr4_sgpr5' }
                                     ^
<stdin>:4866:2: note: possible intended match here
 kernargSegmentPtr: { reg: '$sgpr8_sgpr9' }
 ^

Input file: <stdin>
Check file: /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/attributor-flatscratchinit-globalisel.ll

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

Input was:
<<<<<<
            .
            .
            .
         4859:  stackPtrOffsetReg: '$sp_reg' 
         4860:  bytesInStackArgArea: 0 
         4861:  returnsVoid: true 
         4862:  argumentInfo: 
         4863:  privateSegmentBuffer: { reg: '$sgpr0_sgpr1_sgpr2_sgpr3' } 
         4864:  dispatchPtr: { reg: '$sgpr4_sgpr5' } 
next:521'0                                          X error: no match found
         4865:  queuePtr: { reg: '$sgpr6_sgpr7' } 
next:521'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         4866:  kernargSegmentPtr: { reg: '$sgpr8_sgpr9' } 
next:521'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:521'1      ?                                           possible intended match
         4867:  dispatchID: { reg: '$sgpr10_sgpr11' } 
next:521'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         4868:  flatScratchInit: { reg: '$sgpr12_sgpr13' } 
next:521'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         4869:  workGroupIDX: { reg: '$sgpr14' } 
next:521'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         4870:  workGroupIDY: { reg: '$sgpr15' } 
next:521'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         4871:  workGroupIDZ: { reg: '$sgpr16' } 
...

```

</details>

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


More information about the cfe-commits mailing list