[clang] [llvm] [SPIRV] Select the correct `OpSelect` pseudo when dealing with untyped pointers (PR #240652)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 11 03:56:39 PST 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ml-opt-devrel-x86-64` running on `ml-opt-devrel-x86-64-b2` while building `llvm` at step 5 "annotate".

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

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

```
Step 5 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/mlgo-dev.sh --enable-tf-aot' (failure)
...
PASS: LLVM :: CodeGen/PowerPC/p10-vector-shift.ll (17178 of 70250)
PASS: LLVM :: Transforms/SLPVectorizer/consecutive-access.ll (17179 of 70250)
PASS: LLVM :: CodeGen/X86/inalloca-regparm.ll (17180 of 70250)
PASS: LLVM :: tools/llvm-objcopy/ELF/remove-linked-section.test (17181 of 70250)
PASS: LLVM :: CodeGen/AMDGPU/si-fix-sgpr-copies-av-constrain.mir (17182 of 70250)
PASS: LLVM :: CodeGen/RISCV/mem.ll (17183 of 70250)
PASS: LLVM :: Transforms/LoopVectorize/no_switch.ll (17184 of 70250)
PASS: LLVM :: CodeGen/AMDGPU/si-pre-emit-peephole-unpack-invalidates.mir (17185 of 70250)
PASS: LLVM :: MC/AArch64/FP8_SVE2/fdot.s (17186 of 70250)
PASS: LLVM :: DebugInfo/X86/sdag-load-sext.ll (17187 of 70250)
FAIL: LLVM :: Instrumentation/MemorySanitizer/store-origin.ll (17188 of 70250)
******************** TEST 'LLVM :: Instrumentation/MemorySanitizer/store-origin.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/opt < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll -msan-check-access-address=0 -msan-track-origins=1 -S -passes=msan 2>&1 | /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/FileCheck -check-prefixes=CHECK-ORIGINS1 /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll
# executed command: /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/opt -msan-check-access-address=0 -msan-track-origins=1 -S -passes=msan
# executed command: /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/FileCheck -check-prefixes=CHECK-ORIGINS1 /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll
# RUN: at line 3
/b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/opt < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll -msan-check-access-address=0 -msan-track-origins=2 -S -passes=msan 2>&1 | /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/FileCheck -check-prefixes=CHECK-ORIGINS2 /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll
# executed command: /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/opt -msan-check-access-address=0 -msan-track-origins=2 -S -passes=msan
# executed command: /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/FileCheck -check-prefixes=CHECK-ORIGINS2 /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll
# RUN: at line 4
/b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/opt < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll -msan-kernel=1 -msan-check-access-address=0 -S -passes=msan 2>&1        | /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/FileCheck -check-prefixes=CHECK-KMSAN /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll
# executed command: /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/opt -msan-kernel=1 -msan-check-access-address=0 -S -passes=msan
# executed command: /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/FileCheck -check-prefixes=CHECK-KMSAN /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll
# .---command stderr------------
# | /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll:67:21: error: CHECK-KMSAN-NEXT: expected string not found in input
# | ; CHECK-KMSAN-NEXT: [[RETVAL_SHADOW:%.*]] = getelementptr i8, ptr [[TMP0]], i64 800, !dbg [[DBG15]]
# |                     ^
# | <stdin>:9:53: note: scanning from here
# |  %0 = call ptr @__msan_get_context_state(), !dbg !15
# |                                                     ^
# | <stdin>:9:53: note: with "TMP0" equal to "%0"
# |  %0 = call ptr @__msan_get_context_state(), !dbg !15
# |                                                     ^
# | <stdin>:9:53: note: with "DBG15" equal to "!15"
# |  %0 = call ptr @__msan_get_context_state(), !dbg !15
# |                                                     ^
# | <stdin>:9:53: note: pattern attempts to capture variables: "RETVAL_SHADOW"
# |  %0 = call ptr @__msan_get_context_state(), !dbg !15
# |                                                     ^
# | <stdin>:17:3: note: possible intended match here
# |  %_msarg = getelementptr i8, ptr %param_shadow, i64 8, !dbg !15
# |   ^
# | 
# | Input file: <stdin>
Step 7 (Run tests) failure: Run tests (failure)
...
PASS: LLVM :: CodeGen/PowerPC/p10-vector-shift.ll (17178 of 70250)
PASS: LLVM :: Transforms/SLPVectorizer/consecutive-access.ll (17179 of 70250)
PASS: LLVM :: CodeGen/X86/inalloca-regparm.ll (17180 of 70250)
PASS: LLVM :: tools/llvm-objcopy/ELF/remove-linked-section.test (17181 of 70250)
PASS: LLVM :: CodeGen/AMDGPU/si-fix-sgpr-copies-av-constrain.mir (17182 of 70250)
PASS: LLVM :: CodeGen/RISCV/mem.ll (17183 of 70250)
PASS: LLVM :: Transforms/LoopVectorize/no_switch.ll (17184 of 70250)
PASS: LLVM :: CodeGen/AMDGPU/si-pre-emit-peephole-unpack-invalidates.mir (17185 of 70250)
PASS: LLVM :: MC/AArch64/FP8_SVE2/fdot.s (17186 of 70250)
PASS: LLVM :: DebugInfo/X86/sdag-load-sext.ll (17187 of 70250)
FAIL: LLVM :: Instrumentation/MemorySanitizer/store-origin.ll (17188 of 70250)
******************** TEST 'LLVM :: Instrumentation/MemorySanitizer/store-origin.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/opt < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll -msan-check-access-address=0 -msan-track-origins=1 -S -passes=msan 2>&1 | /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/FileCheck -check-prefixes=CHECK-ORIGINS1 /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll
# executed command: /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/opt -msan-check-access-address=0 -msan-track-origins=1 -S -passes=msan
# executed command: /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/FileCheck -check-prefixes=CHECK-ORIGINS1 /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll
# RUN: at line 3
/b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/opt < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll -msan-check-access-address=0 -msan-track-origins=2 -S -passes=msan 2>&1 | /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/FileCheck -check-prefixes=CHECK-ORIGINS2 /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll
# executed command: /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/opt -msan-check-access-address=0 -msan-track-origins=2 -S -passes=msan
# executed command: /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/FileCheck -check-prefixes=CHECK-ORIGINS2 /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll
# RUN: at line 4
/b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/opt < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll -msan-kernel=1 -msan-check-access-address=0 -S -passes=msan 2>&1        | /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/FileCheck -check-prefixes=CHECK-KMSAN /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll
# executed command: /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/opt -msan-kernel=1 -msan-check-access-address=0 -S -passes=msan
# executed command: /b/ml-opt-devrel-x86-64-b1/llvm-project/build-mlgo/bin/FileCheck -check-prefixes=CHECK-KMSAN /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll
# .---command stderr------------
# | /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Instrumentation/MemorySanitizer/store-origin.ll:67:21: error: CHECK-KMSAN-NEXT: expected string not found in input
# | ; CHECK-KMSAN-NEXT: [[RETVAL_SHADOW:%.*]] = getelementptr i8, ptr [[TMP0]], i64 800, !dbg [[DBG15]]
# |                     ^
# | <stdin>:9:53: note: scanning from here
# |  %0 = call ptr @__msan_get_context_state(), !dbg !15
# |                                                     ^
# | <stdin>:9:53: note: with "TMP0" equal to "%0"
# |  %0 = call ptr @__msan_get_context_state(), !dbg !15
# |                                                     ^
# | <stdin>:9:53: note: with "DBG15" equal to "!15"
# |  %0 = call ptr @__msan_get_context_state(), !dbg !15
# |                                                     ^
# | <stdin>:9:53: note: pattern attempts to capture variables: "RETVAL_SHADOW"
# |  %0 = call ptr @__msan_get_context_state(), !dbg !15
# |                                                     ^
# | <stdin>:17:3: note: possible intended match here
# |  %_msarg = getelementptr i8, ptr %param_shadow, i64 8, !dbg !15
# |   ^
# | 
# | Input file: <stdin>

```

</details>

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


More information about the cfe-commits mailing list