Skip to content

[ctxprof] Fix initializer in PGOCtxProfLowering #131269

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 2 commits into from
Mar 14, 2025
Merged

Conversation

mtrofin
Copy link
Member

@mtrofin mtrofin commented Mar 14, 2025

It needs to match the structure of FunctionData in compiler-rt, but missed a field in PR #130655.

mtrofin added 2 commits March 13, 2025 21:03
It needs to match the structure of `FunctionData` in compiler-rt, but
missed a field in PR llvm#130655.
@llvmbot llvmbot added PGO Profile Guided Optimizations llvm:transforms labels Mar 14, 2025
@llvmbot
Copy link
Member

llvmbot commented Mar 14, 2025

@llvm/pr-subscribers-pgo

@llvm/pr-subscribers-llvm-transforms

Author: Mircea Trofin (mtrofin)

Changes

It needs to match the structure of FunctionData in compiler-rt, but missed a field in PR #130655.


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

1 Files Affected:

  • (modified) llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp (+1)
diff --git a/llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp b/llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp
index ffc2aec77ff91..9f2b2d6212a8e 100644
--- a/llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp
@@ -124,6 +124,7 @@ CtxInstrumentationLowerer::CtxInstrumentationLowerer(Module &M,
                                       });
   FunctionDataTy =
       StructType::get(M.getContext(), {
+                                          PointerTy,          /*Next*/
                                           PointerTy,          /*FlatCtx*/
                                           SanitizerMutexType, /*Mutex*/
                                       });

@mtrofin mtrofin merged commit 61adca7 into llvm:main Mar 14, 2025
6 of 10 checks passed
@mtrofin mtrofin deleted the fixups branch March 14, 2025 04:04
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-ubuntu running on as-builder-7 while building llvm at step 6 "test-build-unified-tree-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck --check-prefix=LOWERING /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck --check-prefix=LOWERING /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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

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

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck --check-prefix=LOWERING /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck --check-prefix=LOWERING /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: �[0m�[0;1;31merror: �[0m�[1mLOWERING: expected string not found in input
�[0m; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
�[0;1;32m            ^
�[0m�[1m<stdin>:7:78: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
�[0;1;32m                                                                             ^
�[0m�[1m<stdin>:8:1: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m@0 = internal global { ptr, ptr, i8 } zeroinitializer
�[0;1;32m^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB0
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:17:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB1
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:103:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB2
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:111:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB3
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:130:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB4
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:147:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
�[0;1;32m ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck --check-prefix=INSTRUMENT /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck --check-prefix=INSTRUMENT /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
RUN: at line 4: /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck --check-prefix=LOWERING /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck --check-prefix=LOWERING /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-ubuntu running on as-builder-7 while building llvm at step 6 "test-build-unified-tree-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/FileCheck --check-prefix=LOWERING /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/FileCheck --check-prefix=LOWERING /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-amdgpu-runtime-2 running on rocm-worker-hw-02 while building llvm at step 8 "Add check check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 8 (Add check check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/FileCheck --check-prefix=INSTRUMENT /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/FileCheck --check-prefix=INSTRUMENT /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/FileCheck --check-prefix=LOWERING /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/FileCheck --check-prefix=LOWERING /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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/18984

Here is the relevant piece of the build log for the reference
Step 8 (Add check check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck --check-prefix=INSTRUMENT /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck --check-prefix=INSTRUMENT /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck --check-prefix=LOWERING /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck --check-prefix=LOWERING /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder clang-m68k-linux-cross running on suse-gary-m68k-cross while building llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/FileCheck --check-prefix=INSTRUMENT /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/FileCheck --check-prefix=INSTRUMENT /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/FileCheck --check-prefix=LOWERING /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/FileCheck --check-prefix=LOWERING /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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

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

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /buildbot/worker/arc-folder/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /buildbot/worker/arc-folder/build/bin/FileCheck --check-prefix=INSTRUMENT /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /buildbot/worker/arc-folder/build/bin/FileCheck --check-prefix=INSTRUMENT /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /buildbot/worker/arc-folder/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
RUN: at line 4: /buildbot/worker/arc-folder/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /buildbot/worker/arc-folder/build/bin/FileCheck --check-prefix=LOWERING /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /buildbot/worker/arc-folder/build/bin/FileCheck --check-prefix=LOWERING /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /buildbot/worker/arc-folder/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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/14850

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/ml-opt-rel-x86-64-b1/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck --check-prefix=INSTRUMENT /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /b/ml-opt-rel-x86-64-b1/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck --check-prefix=INSTRUMENT /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /b/ml-opt-rel-x86-64-b1/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck --check-prefix=LOWERING /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /b/ml-opt-rel-x86-64-b1/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck --check-prefix=LOWERING /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder ml-opt-dev-x86-64 running on ml-opt-dev-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/137/builds/15084

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/ml-opt-dev-x86-64-b1/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck --check-prefix=INSTRUMENT /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /b/ml-opt-dev-x86-64-b1/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck --check-prefix=INSTRUMENT /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /b/ml-opt-dev-x86-64-b1/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck --check-prefix=LOWERING /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /b/ml-opt-dev-x86-64-b1/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck --check-prefix=LOWERING /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck --check-prefix=INSTRUMENT /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck --check-prefix=INSTRUMENT /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck --check-prefix=LOWERING /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck --check-prefix=LOWERING /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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/14917

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/ml-opt-devrel-x86-64-b1/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck --check-prefix=INSTRUMENT /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck --check-prefix=INSTRUMENT /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /b/ml-opt-devrel-x86-64-b1/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
RUN: at line 4: /b/ml-opt-devrel-x86-64-b1/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck --check-prefix=LOWERING /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck --check-prefix=LOWERING /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /b/ml-opt-devrel-x86-64-b1/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder clang-cmake-x86_64-avx512-linux running on avx512-intel64 while building llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck --check-prefix=INSTRUMENT /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck --check-prefix=INSTRUMENT /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
RUN: at line 4: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck --check-prefix=LOWERING /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck --check-prefix=LOWERING /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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

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

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe --check-prefix=INSTRUMENT Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe' -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' --check-prefix=INSTRUMENT 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll'
# RUN: at line 4
z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe --check-prefix=LOWERING Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe' -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' --check-prefix=LOWERING 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll'
# .---command stderr------------
# | �[1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:16:13: �[0m�[0;1;31merror: �[0m�[1mLOWERING: expected string not found in input
�[0m# | �[1m�[0m; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
# | �[0;1;32m            ^
�[0m# | �[0;1;32m�[0m�[1m<stdin>:7:78: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m# | �[1m�[0m@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
# | �[0;1;32m                                                                             ^
�[0m# | �[0;1;32m�[0m�[1m<stdin>:8:1: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m# | �[1m�[0m@0 = internal global { ptr, ptr, i8 } zeroinitializer
# | �[0;1;32m^
�[0m# | �[0;1;32m�[0m�[1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:42:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB0
�[0m# | �[1m�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
# | �[0;1;32m                                                                                ^
�[0m# | �[0;1;32m�[0m�[1m<stdin>:17:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m# | �[1m�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
# | �[0;1;32m ^
�[0m# | �[0;1;32m�[0m�[1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:184:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB1
�[0m# | �[1m�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
# | �[0;1;32m                                                                                ^
�[0m# | �[0;1;32m�[0m�[1m<stdin>:103:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m# | �[1m�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
# | �[0;1;32m ^
�[0m# | �[0;1;32m�[0m�[1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:208:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB2
�[0m# | �[1m�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
# | �[0;1;32m                                                                                ^
�[0m# | �[0;1;32m�[0m�[1m<stdin>:111:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m# | �[1m�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
# | �[0;1;32m ^
�[0m# | �[0;1;32m�[0m�[1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:240:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB3
�[0m# | �[1m�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
# | �[0;1;32m                                                                                ^
�[0m# | �[0;1;32m�[0m�[1m<stdin>:130:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m# | �[1m�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
# | �[0;1;32m ^
�[0m# | �[0;1;32m�[0m�[1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:268:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB4
�[0m# | �[1m�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
# | �[0;1;32m                                                                                ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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/14508

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 :: Transforms/PGOProfile/ctx-instrumentation.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 -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck --check-prefix=LOWERING /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck --check-prefix=LOWERING /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: �[0m�[0;1;31merror: �[0m�[1mLOWERING: expected string not found in input
�[0m; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
�[0;1;32m            ^
�[0m�[1m<stdin>:7:78: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
�[0;1;32m                                                                             ^
�[0m�[1m<stdin>:8:1: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m@0 = internal global { ptr, ptr, i8 } zeroinitializer
�[0;1;32m^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB0
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:17:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB1
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:103:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB2
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:111:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB3
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:130:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB4
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:147:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
�[0;1;32m ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-aarch64-darwin running on doug-worker-5 while building llvm at step 6 "test-build-unified-tree-check-all".

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

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck --check-prefix=INSTRUMENT /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck --check-prefix=INSTRUMENT /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck --check-prefix=LOWERING /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck --check-prefix=LOWERING /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
�[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: �[0m�[0;1;31merror: �[0m�[1mLOWERING: expected string not found in input
�[0m; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
�[0;1;32m            ^
�[0m�[1m<stdin>:7:78: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
�[0;1;32m                                                                             ^
�[0m�[1m<stdin>:8:1: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m@0 = internal global { ptr, ptr, i8 } zeroinitializer
�[0;1;32m^
�[0m�[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB0
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:17:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
�[0;1;32m ^
�[0m�[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB1
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:103:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
�[0;1;32m ^
�[0m�[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB2
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:111:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
�[0;1;32m ^
�[0m�[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB3
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:130:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
�[0;1;32m ^
�[0m�[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB4
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:147:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
�[0;1;32m ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-win running on as-builder-8 while building llvm at step 7 "test-build-unified-tree-check-llvm".

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

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll | c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe --check-prefix=INSTRUMENT C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe' -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe' --check-prefix=INSTRUMENT 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll'
# RUN: at line 4
c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll | c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe --check-prefix=LOWERING C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe' -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe' --check-prefix=LOWERING 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll'
# .---command stderr------------
# | C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
# | ; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
# |             ^
# | <stdin>:7:78: note: scanning from here
# | @__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
# |                                                                              ^
# | <stdin>:8:1: note: possible intended match here
# | @0 = internal global { ptr, ptr, i8 } zeroinitializer
# | ^
# | C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
# | ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
# |                                                                                 ^
# | <stdin>:17:2: note: possible intended match here
# |  %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
# |  ^
# | C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
# | ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
# |                                                                                 ^
# | <stdin>:103:2: note: possible intended match here
# |  %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
# |  ^
# | C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
# | ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
# |                                                                                 ^
# | <stdin>:111:2: note: possible intended match here
# |  %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
# |  ^
# | C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
# | ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
# |                                                                                 ^
# | <stdin>:130:2: note: possible intended match here
# |  %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
# |  ^
# | C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
# | ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
# |                                                                                 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve2-vla running on linaro-g4-01 while building llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck --check-prefix=INSTRUMENT /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck --check-prefix=INSTRUMENT /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck --check-prefix=LOWERING /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck --check-prefix=LOWERING /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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

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

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/FileCheck --check-prefix=LOWERING /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/FileCheck --check-prefix=LOWERING /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-win running on as-builder-8 while building llvm at step 7 "test-build-unified-tree-check-llvm".

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

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll | c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe --check-prefix=INSTRUMENT C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe' -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe' --check-prefix=INSTRUMENT 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll'
# RUN: at line 4
c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll | c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe --check-prefix=LOWERING C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe' -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe' --check-prefix=LOWERING 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll'
# .---command stderr------------
# | C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
# | ; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
# |             ^
# | <stdin>:7:78: note: scanning from here
# | @__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
# |                                                                              ^
# | <stdin>:8:1: note: possible intended match here
# | @0 = internal global { ptr, ptr, i8 } zeroinitializer
# | ^
# | C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
# | ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
# |                                                                                 ^
# | <stdin>:17:2: note: possible intended match here
# |  %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
# |  ^
# | C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
# | ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
# |                                                                                 ^
# | <stdin>:103:2: note: possible intended match here
# |  %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
# |  ^
# | C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
# | ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
# |                                                                                 ^
# | <stdin>:111:2: note: possible intended match here
# |  %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
# |  ^
# | C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
# | ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
# |                                                                                 ^
# | <stdin>:130:2: note: possible intended match here
# |  %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
# |  ^
# | C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Transforms\PGOProfile\ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
# | ; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
# |                                                                                 ^
...

mtrofin added a commit that referenced this pull request Mar 14, 2025
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-darwin running on doug-worker-3 while building llvm at step 6 "test-build-unified-tree-check-all".

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

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck --check-prefix=INSTRUMENT /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck --check-prefix=INSTRUMENT /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck --check-prefix=LOWERING /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck --check-prefix=LOWERING /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-hwasan running on sanitizer-buildbot12 while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87070 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (70549 of 87070)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
Step 11 (stage2/hwasan check) failure: stage2/hwasan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87070 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (70549 of 87070)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
Step 14 (stage3/hwasan check) failure: stage3/hwasan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 84125 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (70570 of 84125)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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

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

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbot/buildbot-root/gcc-no-asserts/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbot/buildbot-root/gcc-no-asserts/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/buildbot-root/gcc-no-asserts/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/buildbot/buildbot-root/gcc-no-asserts/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/buildbot/buildbot-root/gcc-no-asserts/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbot/buildbot-root/gcc-no-asserts/build/bin/FileCheck --check-prefix=LOWERING /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/buildbot-root/gcc-no-asserts/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/buildbot/buildbot-root/gcc-no-asserts/build/bin/FileCheck --check-prefix=LOWERING /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
�[1m/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: �[0m�[0;1;31merror: �[0m�[1mLOWERING: expected string not found in input
�[0m; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
�[0;1;32m            ^
�[0m�[1m<stdin>:7:78: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
�[0;1;32m                                                                             ^
�[0m�[1m<stdin>:8:1: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m@0 = internal global { ptr, ptr, i8 } zeroinitializer
�[0;1;32m^
�[0m�[1m/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB0
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:17:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB1
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:103:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB2
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:111:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB3
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:130:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
�[0;1;32m ^
�[0m�[1m/home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: �[0m�[0;1;31merror: �[0m�[1mundefined variable: GLOB4
�[0m; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
�[0;1;32m                                                                                ^
�[0m�[1m<stdin>:147:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
�[0;1;32m ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder ppc64le-lld-multistage-test running on ppc64le-lld-multistage-test while building llvm at step 7 "test-build-stage1-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-stage1-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/FileCheck --check-prefix=LOWERING /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/FileCheck --check-prefix=LOWERING /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...
Step 13 (test-build-stage2-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/FileCheck --check-prefix=LOWERING /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/FileCheck --check-prefix=LOWERING /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder clang-ppc64le-linux-multistage running on ppc64le-clang-multistage-test while building llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/FileCheck --check-prefix=LOWERING /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/FileCheck --check-prefix=LOWERING /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...
Step 11 (ninja check 2) failure: stage 2 checked (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/FileCheck --check-prefix=LOWERING /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/bin/FileCheck --check-prefix=LOWERING /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-global-isel running on linaro-clang-aarch64-global-isel while building llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/FileCheck --check-prefix=INSTRUMENT /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/FileCheck --check-prefix=INSTRUMENT /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/FileCheck --check-prefix=LOWERING /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/tcwg-buildbot/worker/clang-aarch64-global-isel/stage1/bin/FileCheck --check-prefix=LOWERING /home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-global-isel/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-asan running on sanitizer-buildbot8 while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87071 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (70549 of 87071)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
Step 11 (stage2/asan check) failure: stage2/asan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87071 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (70549 of 87071)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
Step 14 (stage3/asan check) failure: stage3/asan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 84125 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (70566 of 84125)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-ubsan running on sanitizer-buildbot9 while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87071 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (70558 of 87071)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
Step 11 (stage2/ubsan check) failure: stage2/ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87071 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (70558 of 87071)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
Step 13 (stage3/ubsan check) failure: stage3/ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 84125 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (70594 of 84125)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-bootstrap-msan running on sanitizer-buildbot6 while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 89640 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (72350 of 89640)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
Step 11 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 89640 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (72350 of 89640)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
Step 13 (stage3/msan check) failure: stage3/msan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 86613 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (72339 of 86613)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-msan running on sanitizer-buildbot9 while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87069 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (70551 of 87069)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
Step 11 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87069 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (70551 of 87069)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
Step 13 (stage3/msan check) failure: stage3/msan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 84125 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll (70584 of 84125)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck --check-prefix=INSTRUMENT /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck --check-prefix=LOWERING /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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/13049

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 :: Transforms/PGOProfile/ctx-instrumentation.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 -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck --check-prefix=INSTRUMENT /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
RUN: at line 4: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck --check-prefix=LOWERING /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck --check-prefix=LOWERING /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve2-vla-2stage running on linaro-g4-01 while building llvm at step 12 "ninja check 2".

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

Here is the relevant piece of the build log for the reference
Step 12 (ninja check 2) failure: stage 2 checked (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck --check-prefix=INSTRUMENT /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck --check-prefix=INSTRUMENT /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck --check-prefix=LOWERING /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/FileCheck --check-prefix=LOWERING /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve-vls-2stage running on linaro-g3-02 while building llvm at step 12 "ninja check 2".

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

Here is the relevant piece of the build log for the reference
Step 12 (ninja check 2) failure: stage 2 checked (failure)
******************** TEST 'LLVM :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/stage2/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/stage2/bin/FileCheck --check-prefix=INSTRUMENT /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/stage2/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/stage2/bin/FileCheck --check-prefix=INSTRUMENT /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/stage2/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/stage2/bin/FileCheck --check-prefix=LOWERING /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/stage2/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/stage2/bin/FileCheck --check-prefix=LOWERING /home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls-2stage/llvm/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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/25728

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /build/buildbot/premerge-monolithic-linux/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck --check-prefix=INSTRUMENT /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /build/buildbot/premerge-monolithic-linux/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck --check-prefix=INSTRUMENT /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /build/buildbot/premerge-monolithic-linux/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck --check-prefix=LOWERING /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /build/buildbot/premerge-monolithic-linux/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck --check-prefix=LOWERING /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 14, 2025

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/22020

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 :: Transforms/PGOProfile/ctx-instrumentation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/1/llvm-x86_64-debian-dylib/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint    -S < /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck --check-prefix=INSTRUMENT /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/opt -passes=ctx-instr-gen -profile-context-root=an_entrypoint -S
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck --check-prefix=INSTRUMENT /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
RUN: at line 4: /b/1/llvm-x86_64-debian-dylib/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint    -profile-context-root=another_entrypoint_no_callees    -S < /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck --check-prefix=LOWERING /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/opt -passes=ctx-instr-gen,assign-guid,ctx-instr-lower -profile-context-root=an_entrypoint -profile-context-root=another_entrypoint_no_callees -S
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck --check-prefix=LOWERING /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:16:13: error: LOWERING: expected string not found in input
; LOWERING: @[[GLOB0:[0-9]+]] = internal global { ptr, i8 } zeroinitializer
            ^
<stdin>:7:78: note: scanning from here
@__llvm_ctx_profile_expected_callee = external hidden thread_local global ptr
                                                                             ^
<stdin>:8:1: note: possible intended match here
@0 = internal global { ptr, ptr, i8 } zeroinitializer
^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:42:81: error: undefined variable: GLOB0
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB0]], ptr @foo, i64 6699318081062747564, i32 2, i32 2)
                                                                                ^
<stdin>:17:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @0, ptr @foo, i64 6699318081062747564, i32 2, i32 2)
 ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:184:81: error: undefined variable: GLOB1
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB1]], ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
                                                                                ^
<stdin>:103:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @1, ptr @simple, i64 -3006003237940970099, i32 1, i32 0)
 ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:208:81: error: undefined variable: GLOB2
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB2]], ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
                                                                                ^
<stdin>:111:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @2, ptr @no_callsites, i64 5679753335911435902, i32 2, i32 0)
 ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:240:81: error: undefined variable: GLOB3
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB3]], ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
                                                                                ^
<stdin>:130:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @3, ptr @no_counters, i64 5458232184388660970, i32 1, i32 1)
 ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll:268:81: error: undefined variable: GLOB4
; LOWERING-NEXT: [[TMP1:%.*]] = call ptr @__llvm_ctx_profile_get_context(ptr @[[GLOB4]], ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
                                                                                ^
<stdin>:147:2: note: possible intended match here
 %1 = call ptr @__llvm_ctx_profile_get_context(ptr @4, ptr @inlineasm, i64 -3771893999295659109, i32 1, i32 0)
 ^
...

frederik-h pushed a commit to frederik-h/llvm-project that referenced this pull request Mar 18, 2025
It needs to match the structure of `FunctionData` in compiler-rt, but
missed a field in PR llvm#130655.
frederik-h pushed a commit to frederik-h/llvm-project that referenced this pull request Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
llvm:transforms PGO Profile Guided Optimizations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants