Skip to content

[NFC][AMDGPU][Attributor] Exit earlier if entry CC #114177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

shiltian
Copy link
Contributor

Avoid calling TTI or other stuff unnecessarily

Avoid calling TTI or other stuff unnecessarily
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @shiltian and the rest of your teammates on Graphite Graphite

@shiltian shiltian requested a review from arsenm October 30, 2024 04:23
@llvmbot
Copy link
Member

llvmbot commented Oct 30, 2024

@llvm/pr-subscribers-backend-amdgpu

Author: Shilei Tian (shiltian)

Changes

Avoid calling TTI or other stuff unnecessarily


Full diff: https://github.com/llvm/llvm-project/pull/114177.diff

1 Files Affected:

  • (modified) llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp (+12-6)
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
index 6a69b9d2bfc716..04d3e482359ade 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
@@ -767,14 +767,17 @@ struct AAAMDFlatWorkGroupSize : public AAAMDSizeRangeAttribute {
 
   void initialize(Attributor &A) override {
     Function *F = getAssociatedFunction();
+
+    if (AMDGPU::isEntryFunctionCC(F->getCallingConv())) {
+      indicatePessimisticFixpoint();
+      return;
+    }
+
     auto &InfoCache = static_cast<AMDGPUInformationCache &>(A.getInfoCache());
     unsigned MinGroupSize, MaxGroupSize;
     std::tie(MinGroupSize, MaxGroupSize) = InfoCache.getFlatWorkGroupSizes(*F);
     intersectKnown(
         ConstantRange(APInt(32, MinGroupSize), APInt(32, MaxGroupSize + 1)));
-
-    if (AMDGPU::isEntryFunctionCC(F->getCallingConv()))
-      indicatePessimisticFixpoint();
   }
 
   ChangeStatus updateImpl(Attributor &A) override {
@@ -833,6 +836,12 @@ struct AAAMDWavesPerEU : public AAAMDSizeRangeAttribute {
 
   void initialize(Attributor &A) override {
     Function *F = getAssociatedFunction();
+
+    if (AMDGPU::isEntryFunctionCC(F->getCallingConv())) {
+      indicatePessimisticFixpoint();
+      return;
+    }
+
     auto &InfoCache = static_cast<AMDGPUInformationCache &>(A.getInfoCache());
 
     if (const auto *AssumedGroupSize = A.getAAFor<AAAMDFlatWorkGroupSize>(
@@ -847,9 +856,6 @@ struct AAAMDWavesPerEU : public AAAMDSizeRangeAttribute {
       ConstantRange Range(APInt(32, Min), APInt(32, Max + 1));
       intersectKnown(Range);
     }
-
-    if (AMDGPU::isEntryFunctionCC(F->getCallingConv()))
-      indicatePessimisticFixpoint();
   }
 
   ChangeStatus updateImpl(Attributor &A) override {

@shiltian shiltian merged commit 922a0d3 into main Oct 30, 2024
7 of 9 checks passed
@shiltian shiltian deleted the users/shiltian/entrycc-exit-earlier branch October 30, 2024 04:42
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 30, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building llvm at step 8 "Add check check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 8 (Add check check-llvm) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/attributor-loop-issue-58639.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll:54:15: error: CHECK-SAME: expected string not found in input
; CHECK-SAME: () #[[ATTR0]] {
              ^
<stdin>:32:33: note: scanning from here
define amdgpu_kernel void @entry() #1 {
                                ^
<stdin>:32:33: note: with "ATTR0" equal to "0"
define amdgpu_kernel void @entry() #1 {
                                ^

Input file: <stdin>
Check file: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll

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

Input was:
<<<<<<
           .
           .
           .
          27:  %tmp6 = load ptr, ptr %tmp4, align 8 
          28:  %tmp7 = call fastcc i1 @widget(ptr %tmp6) 
          29:  br label %bb5 
          30: } 
          31:  
          32: define amdgpu_kernel void @entry() #1 { 
same:54'0                                     X~~~~~~~ error: no match found
same:54'1                                              with "ATTR0" equal to "0"
          33:  %alloca = alloca %0, align 8, addrspace(5) 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          34:  %cast = addrspacecast ptr addrspace(5) %alloca to ptr 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          35:  %arst = call double @baz(ptr %cast) 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          36:  ret void 
same:54'0     ~~~~~~~~~~
          37: } 
same:54'0     ~~
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 30, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-rel-x86-64 running on ml-opt-rel-x86-64-b2 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/attributor-loop-issue-58639.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/ml-opt-rel-x86-64-b1/build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll | /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
+ /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
+ /b/ml-opt-rel-x86-64-b1/build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll:54:15: error: CHECK-SAME: expected string not found in input
; CHECK-SAME: () #[[ATTR0]] {
              ^
<stdin>:32:33: note: scanning from here
define amdgpu_kernel void @entry() #1 {
                                ^
<stdin>:32:33: note: with "ATTR0" equal to "0"
define amdgpu_kernel void @entry() #1 {
                                ^

Input file: <stdin>
Check file: /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll

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

Input was:
<<<<<<
           .
           .
           .
          27:  %tmp6 = load ptr, ptr %tmp4, align 8 
          28:  %tmp7 = call fastcc i1 @widget(ptr %tmp6) 
          29:  br label %bb5 
          30: } 
          31:  
          32: define amdgpu_kernel void @entry() #1 { 
same:54'0                                     X~~~~~~~ error: no match found
same:54'1                                              with "ATTR0" equal to "0"
          33:  %alloca = alloca %0, align 8, addrspace(5) 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          34:  %cast = addrspacecast ptr addrspace(5) %alloca to ptr 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          35:  %arst = call double @baz(ptr %cast) 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          36:  ret void 
same:54'0     ~~~~~~~~~~
          37: } 
same:54'0     ~~
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 30, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-devrel-x86-64 running on ml-opt-devrel-x86-64-b1 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/attributor-loop-issue-58639.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/ml-opt-devrel-x86-64-b1/build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll | /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
+ /b/ml-opt-devrel-x86-64-b1/build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
+ /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll:54:15: error: CHECK-SAME: expected string not found in input
; CHECK-SAME: () #[[ATTR0]] {
              ^
<stdin>:32:33: note: scanning from here
define amdgpu_kernel void @entry() #1 {
                                ^
<stdin>:32:33: note: with "ATTR0" equal to "0"
define amdgpu_kernel void @entry() #1 {
                                ^

Input file: <stdin>
Check file: /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll

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

Input was:
<<<<<<
           .
           .
           .
          27:  %tmp6 = load ptr, ptr %tmp4, align 8 
          28:  %tmp7 = call fastcc i1 @widget(ptr %tmp6) 
          29:  br label %bb5 
          30: } 
          31:  
          32: define amdgpu_kernel void @entry() #1 { 
same:54'0                                     X~~~~~~~ error: no match found
same:54'1                                              with "ATTR0" equal to "0"
          33:  %alloca = alloca %0, align 8, addrspace(5) 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          34:  %cast = addrspacecast ptr addrspace(5) %alloca to ptr 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          35:  %arst = call double @baz(ptr %cast) 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          36:  ret void 
same:54'0     ~~~~~~~~~~
          37: } 
same:54'0     ~~
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 30, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-dev-x86-64 running on ml-opt-dev-x86-64-b2 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/ml-opt-dev-x86-64-b1/build/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -amdgpu-annotate-kernel-features < /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll | /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck -check-prefixes=AKF_HSA /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
+ /b/ml-opt-dev-x86-64-b1/build/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -amdgpu-annotate-kernel-features
+ /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck -check-prefixes=AKF_HSA /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
RUN: at line 3: /b/ml-opt-dev-x86-64-b1/build/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -passes=amdgpu-attributor < /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll | /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck -check-prefixes=ATTRIBUTOR_HSA /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
+ /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck -check-prefixes=ATTRIBUTOR_HSA /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
+ /b/ml-opt-dev-x86-64-b1/build/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -passes=amdgpu-attributor
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:720:24: error: ATTRIBUTOR_HSA-SAME: expected string not found in input
; ATTRIBUTOR_HSA-SAME: () #[[ATTR17]] {
                       ^
<stdin>:315:45: note: scanning from here
define amdgpu_kernel void @func_kern_defined() #19 {
                                            ^
<stdin>:315:45: note: with "ATTR17" equal to "17"
define amdgpu_kernel void @func_kern_defined() #19 {
                                            ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:972:24: error: ATTRIBUTOR_HSA-SAME: expected string not found in input
; ATTRIBUTOR_HSA-SAME: () #[[ATTR27]] {
                       ^
<stdin>:417:34: note: scanning from here
define void @unused_enqueue_block() #29 {
                                 ^
<stdin>:417:34: note: with "ATTR27" equal to "28"
define void @unused_enqueue_block() #29 {
                                 ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:983:24: error: ATTRIBUTOR_HSA-SAME: expected string not found in input
; ATTRIBUTOR_HSA-SAME: () #[[ATTR27]] {
                       ^
<stdin>:421:33: note: scanning from here
define internal void @known_func() #29 {
                                ^
<stdin>:421:33: note: with "ATTR27" equal to "28"
define internal void @known_func() #29 {
                                ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:1054:19: error: ATTRIBUTOR_HSA: expected string not found in input
; ATTRIBUTOR_HSA: attributes #[[ATTR27]] = { "amdgpu-no-agpr" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-waves-per-eu"="4,10" "uniform-work-group-size"="false" }
                  ^
<stdin>:457:55: note: scanning from here
attributes #27 = { "uniform-work-group-size"="false" }
                                                      ^
<stdin>:457:55: note: with "ATTR27" equal to "28"
attributes #27 = { "uniform-work-group-size"="false" }
                                                      ^
<stdin>:459:1: note: possible intended match here
attributes #29 = { "amdgpu-no-agpr" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-waves-per-eu"="4,10" "uniform-work-group-size"="false" }
^
...

shiltian added a commit that referenced this pull request Oct 30, 2024
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 30, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-gcc-ubuntu running on sie-linux-worker3 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -amdgpu-annotate-kernel-features < /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll | /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck -check-prefixes=AKF_HSA /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck -check-prefixes=AKF_HSA /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -amdgpu-annotate-kernel-features
RUN: at line 3: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -passes=amdgpu-attributor < /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll | /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck -check-prefixes=ATTRIBUTOR_HSA /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck -check-prefixes=ATTRIBUTOR_HSA /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -passes=amdgpu-attributor
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:720:24: �[0m�[0;1;31merror: �[0m�[1mATTRIBUTOR_HSA-SAME: expected string not found in input
�[0m; ATTRIBUTOR_HSA-SAME: () #[[ATTR17]] {
�[0;1;32m                       ^
�[0m�[1m<stdin>:315:45: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mdefine amdgpu_kernel void @func_kern_defined() #19 {
�[0;1;32m                                            ^
�[0m�[1m<stdin>:315:45: �[0m�[0;1;30mnote: �[0m�[1mwith "ATTR17" equal to "17"
�[0mdefine amdgpu_kernel void @func_kern_defined() #19 {
�[0;1;32m                                            ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:972:24: �[0m�[0;1;31merror: �[0m�[1mATTRIBUTOR_HSA-SAME: expected string not found in input
�[0m; ATTRIBUTOR_HSA-SAME: () #[[ATTR27]] {
�[0;1;32m                       ^
�[0m�[1m<stdin>:417:34: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mdefine void @unused_enqueue_block() #29 {
�[0;1;32m                                 ^
�[0m�[1m<stdin>:417:34: �[0m�[0;1;30mnote: �[0m�[1mwith "ATTR27" equal to "28"
�[0mdefine void @unused_enqueue_block() #29 {
�[0;1;32m                                 ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:983:24: �[0m�[0;1;31merror: �[0m�[1mATTRIBUTOR_HSA-SAME: expected string not found in input
�[0m; ATTRIBUTOR_HSA-SAME: () #[[ATTR27]] {
�[0;1;32m                       ^
�[0m�[1m<stdin>:421:33: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mdefine internal void @known_func() #29 {
�[0;1;32m                                ^
�[0m�[1m<stdin>:421:33: �[0m�[0;1;30mnote: �[0m�[1mwith "ATTR27" equal to "28"
�[0mdefine internal void @known_func() #29 {
�[0;1;32m                                ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:1054:19: �[0m�[0;1;31merror: �[0m�[1mATTRIBUTOR_HSA: expected string not found in input
�[0m; ATTRIBUTOR_HSA: attributes #[[ATTR27]] = { "amdgpu-no-agpr" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-waves-per-eu"="4,10" "uniform-work-group-size"="false" }
�[0;1;32m                  ^
�[0m�[1m<stdin>:457:55: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mattributes #27 = { "uniform-work-group-size"="false" }
�[0;1;32m                                                      ^
�[0m�[1m<stdin>:457:55: �[0m�[0;1;30mnote: �[0m�[1mwith "ATTR27" equal to "28"
�[0mattributes #27 = { "uniform-work-group-size"="false" }
�[0;1;32m                                                      ^
�[0m�[1m<stdin>:459:1: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0mattributes #29 = { "amdgpu-no-agpr" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-waves-per-eu"="4,10" "uniform-work-group-size"="false" }
�[0;1;32m^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 30, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/attributor-loop-issue-58639.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll | /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/FileCheck /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/FileCheck /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll:54:15: error: CHECK-SAME: expected string not found in input
; CHECK-SAME: () #[[ATTR0]] {
              ^
<stdin>:32:33: note: scanning from here
define amdgpu_kernel void @entry() #1 {
                                ^
<stdin>:32:33: note: with "ATTR0" equal to "0"
define amdgpu_kernel void @entry() #1 {
                                ^

Input file: <stdin>
Check file: /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll

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

Input was:
<<<<<<
           .
           .
           .
          27:  %tmp6 = load ptr, ptr %tmp4, align 8 
          28:  %tmp7 = call fastcc i1 @widget(ptr %tmp6) 
          29:  br label %bb5 
          30: } 
          31:  
          32: define amdgpu_kernel void @entry() #1 { 
same:54'0                                     X~~~~~~~ error: no match found
same:54'1                                              with "ATTR0" equal to "0"
          33:  %alloca = alloca %0, align 8, addrspace(5) 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          34:  %cast = addrspacecast ptr addrspace(5) %alloca to ptr 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          35:  %arst = call double @baz(ptr %cast) 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          36:  ret void 
same:54'0     ~~~~~~~~~~
          37: } 
same:54'0     ~~
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 30, 2024

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building llvm at step 7 "test-build-unified-tree-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/attributor-loop-issue-58639.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/1/llvm-x86_64-debian-dylib/build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll:54:15: error: CHECK-SAME: expected string not found in input
; CHECK-SAME: () #[[ATTR0]] {
              ^
<stdin>:32:33: note: scanning from here
define amdgpu_kernel void @entry() #1 {
                                ^
<stdin>:32:33: note: with "ATTR0" equal to "0"
define amdgpu_kernel void @entry() #1 {
                                ^

Input file: <stdin>
Check file: /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll

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

Input was:
<<<<<<
           .
           .
           .
          27:  %tmp6 = load ptr, ptr %tmp4, align 8 
          28:  %tmp7 = call fastcc i1 @widget(ptr %tmp6) 
          29:  br label %bb5 
          30: } 
          31:  
          32: define amdgpu_kernel void @entry() #1 { 
same:54'0                                     X~~~~~~~ error: no match found
same:54'1                                              with "ATTR0" equal to "0"
          33:  %alloca = alloca %0, align 8, addrspace(5) 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          34:  %cast = addrspacecast ptr addrspace(5) %alloca to ptr 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          35:  %arst = call double @baz(ptr %cast) 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          36:  ret void 
same:54'0     ~~~~~~~~~~
          37: } 
same:54'0     ~~
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 30, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -amdgpu-annotate-kernel-features < /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck -check-prefixes=AKF_HSA /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -amdgpu-annotate-kernel-features
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck -check-prefixes=AKF_HSA /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
RUN: at line 3: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -passes=amdgpu-attributor < /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck -check-prefixes=ATTRIBUTOR_HSA /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck -check-prefixes=ATTRIBUTOR_HSA /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -passes=amdgpu-attributor
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:720:24: error: ATTRIBUTOR_HSA-SAME: expected string not found in input
; ATTRIBUTOR_HSA-SAME: () #[[ATTR17]] {
                       ^
<stdin>:315:45: note: scanning from here
define amdgpu_kernel void @func_kern_defined() #19 {
                                            ^
<stdin>:315:45: note: with "ATTR17" equal to "17"
define amdgpu_kernel void @func_kern_defined() #19 {
                                            ^
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:972:24: error: ATTRIBUTOR_HSA-SAME: expected string not found in input
; ATTRIBUTOR_HSA-SAME: () #[[ATTR27]] {
                       ^
<stdin>:417:34: note: scanning from here
define void @unused_enqueue_block() #29 {
                                 ^
<stdin>:417:34: note: with "ATTR27" equal to "28"
define void @unused_enqueue_block() #29 {
                                 ^
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:983:24: error: ATTRIBUTOR_HSA-SAME: expected string not found in input
; ATTRIBUTOR_HSA-SAME: () #[[ATTR27]] {
                       ^
<stdin>:421:33: note: scanning from here
define internal void @known_func() #29 {
                                ^
<stdin>:421:33: note: with "ATTR27" equal to "28"
define internal void @known_func() #29 {
                                ^
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:1054:19: error: ATTRIBUTOR_HSA: expected string not found in input
; ATTRIBUTOR_HSA: attributes #[[ATTR27]] = { "amdgpu-no-agpr" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-waves-per-eu"="4,10" "uniform-work-group-size"="false" }
                  ^
<stdin>:457:55: note: scanning from here
attributes #27 = { "uniform-work-group-size"="false" }
                                                      ^
<stdin>:457:55: note: with "ATTR27" equal to "28"
attributes #27 = { "uniform-work-group-size"="false" }
                                                      ^
<stdin>:459:1: note: possible intended match here
attributes #29 = { "amdgpu-no-agpr" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-waves-per-eu"="4,10" "uniform-work-group-size"="false" }
^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 30, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/attributor-loop-issue-58639.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll | /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
+ /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
+ /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll:54:15: error: CHECK-SAME: expected string not found in input
; CHECK-SAME: () #[[ATTR0]] {
              ^
<stdin>:32:33: note: scanning from here
define amdgpu_kernel void @entry() #1 {
                                ^
<stdin>:32:33: note: with "ATTR0" equal to "0"
define amdgpu_kernel void @entry() #1 {
                                ^

Input file: <stdin>
Check file: /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AMDGPU/attributor-loop-issue-58639.ll

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

Input was:
<<<<<<
           .
           .
           .
          27:  %tmp6 = load ptr, ptr %tmp4, align 8 
          28:  %tmp7 = call fastcc i1 @widget(ptr %tmp6) 
          29:  br label %bb5 
          30: } 
          31:  
          32: define amdgpu_kernel void @entry() #1 { 
same:54'0                                     X~~~~~~~ error: no match found
same:54'1                                              with "ATTR0" equal to "0"
          33:  %alloca = alloca %0, align 8, addrspace(5) 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          34:  %cast = addrspacecast ptr addrspace(5) %alloca to ptr 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          35:  %arst = call double @baz(ptr %cast) 
same:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          36:  ret void 
same:54'0     ~~~~~~~~~~
          37: } 
same:54'0     ~~
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 30, 2024

LLVM Buildbot has detected a new failure on builder lld-x86_64-ubuntu-fast running on as-builder-4 while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -amdgpu-annotate-kernel-features < /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll | /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck -check-prefixes=AKF_HSA /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -amdgpu-annotate-kernel-features
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck -check-prefixes=AKF_HSA /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
RUN: at line 3: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -passes=amdgpu-attributor < /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll | /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck -check-prefixes=ATTRIBUTOR_HSA /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -mtriple=amdgcn-unknown-amdhsa -S -passes=amdgpu-attributor
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck -check-prefixes=ATTRIBUTOR_HSA /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:720:24: error: ATTRIBUTOR_HSA-SAME: expected string not found in input
; ATTRIBUTOR_HSA-SAME: () #[[ATTR17]] {
                       ^
<stdin>:315:45: note: scanning from here
define amdgpu_kernel void @func_kern_defined() #19 {
                                            ^
<stdin>:315:45: note: with "ATTR17" equal to "17"
define amdgpu_kernel void @func_kern_defined() #19 {
                                            ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:972:24: error: ATTRIBUTOR_HSA-SAME: expected string not found in input
; ATTRIBUTOR_HSA-SAME: () #[[ATTR27]] {
                       ^
<stdin>:417:34: note: scanning from here
define void @unused_enqueue_block() #29 {
                                 ^
<stdin>:417:34: note: with "ATTR27" equal to "28"
define void @unused_enqueue_block() #29 {
                                 ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:983:24: error: ATTRIBUTOR_HSA-SAME: expected string not found in input
; ATTRIBUTOR_HSA-SAME: () #[[ATTR27]] {
                       ^
<stdin>:421:33: note: scanning from here
define internal void @known_func() #29 {
                                ^
<stdin>:421:33: note: with "ATTR27" equal to "28"
define internal void @known_func() #29 {
                                ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll:1054:19: error: ATTRIBUTOR_HSA: expected string not found in input
; ATTRIBUTOR_HSA: attributes #[[ATTR27]] = { "amdgpu-no-agpr" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-waves-per-eu"="4,10" "uniform-work-group-size"="false" }
                  ^
<stdin>:457:55: note: scanning from here
attributes #27 = { "uniform-work-group-size"="false" }
                                                      ^
<stdin>:457:55: note: with "ATTR27" equal to "28"
attributes #27 = { "uniform-work-group-size"="false" }
                                                      ^
<stdin>:459:1: note: possible intended match here
attributes #29 = { "amdgpu-no-agpr" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-waves-per-eu"="4,10" "uniform-work-group-size"="false" }
^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 30, 2024

LLVM Buildbot has detected a new failure on builder premerge-monolithic-linux running on premerge-linux-1 while building llvm at step 7 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/propagate-waves-per-eu.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /build/buildbot/premerge-monolithic-linux/build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/propagate-waves-per-eu.ll | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/propagate-waves-per-eu.ll
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/propagate-waves-per-eu.ll
+ /build/buildbot/premerge-monolithic-linux/build/bin/opt -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/propagate-waves-per-eu.ll
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/propagate-waves-per-eu.ll:17:15: error: CHECK-SAME: expected string not found in input
; CHECK-SAME: () #[[ATTR0]] {
              ^
<stdin>:10:38: note: scanning from here
define amdgpu_kernel void @kernel_1_8() #1 {
                                     ^
<stdin>:10:38: note: with "ATTR0" equal to "0"
define amdgpu_kernel void @kernel_1_8() #1 {
                                     ^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/propagate-waves-per-eu.ll:36:15: error: CHECK-SAME: expected string not found in input
; CHECK-SAME: () #[[ATTR1]] {
              ^
<stdin>:19:38: note: scanning from here
define amdgpu_kernel void @kernel_1_2() #2 {
                                     ^
<stdin>:19:38: note: with "ATTR1" equal to "0"
define amdgpu_kernel void @kernel_1_2() #2 {
                                     ^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/propagate-waves-per-eu.ll:61:15: error: CHECK-SAME: expected string not found in input
; CHECK-SAME: () #[[ATTR2]] {
              ^
<stdin>:31:38: note: scanning from here
define amdgpu_kernel void @kernel_1_4() #3 {
                                     ^
<stdin>:31:38: note: with "ATTR2" equal to "0"
define amdgpu_kernel void @kernel_1_4() #3 {
                                     ^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/propagate-waves-per-eu.ll:108:15: error: CHECK-SAME: expected string not found in input
; CHECK-SAME: () #[[ATTR3]] {
              ^
<stdin>:52:38: note: scanning from here
define amdgpu_kernel void @kernel_2_9() #7 {
                                     ^
<stdin>:52:38: note: with "ATTR3" equal to "0"
define amdgpu_kernel void @kernel_2_9() #7 {
                                     ^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/CodeGen/AMDGPU/propagate-waves-per-eu.ll:120:15: error: CHECK-SAME: expected string not found in input
; CHECK-SAME: () #[[ATTR6]] {
              ^
<stdin>:58:38: note: scanning from here
define amdgpu_kernel void @kernel_9_9() #8 {
                                     ^
...

NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
Avoid calling TTI or other stuff unnecessarily
NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants