[llvm-branch-commits] [llvm] [VectorUtils] Propagate cache hint metadata (PR #241114)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Nov 13 03:07:47 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 148666 tests passed
* 2300 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.Transforms/SLPVectorizer/X86/cache-hint.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -passes=slp-vectorizer -S -mtriple=x86_64-unknown-linux-gnu -mcpu=znver4 < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SLPVectorizer\X86\cache-hint.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SLPVectorizer\X86\cache-hint.ll --implicit-check-not=mem.cache_hint
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -passes=slp-vectorizer -S -mtriple=x86_64-unknown-linux-gnu -mcpu=znver4
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SLPVectorizer\X86\cache-hint.ll' --implicit-check-not=mem.cache_hint
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SLPVectorizer\X86\cache-hint.ll:137:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP3:%.*]] = getelementptr inbounds double, <8 x ptr> [[TMP2]], <8 x i64> <i64 0, i64 3, i64 7, i64 11, i64 18, i64 21, i64 27, i64 32>
# |               ^
# | <stdin>:56:78: note: scanning from here
# |  %2 = shufflevector <8 x ptr> %1, <8 x ptr> poison, <8 x i32> zeroinitializer
# |                                                                              ^
# | <stdin>:56:78: note: with "TMP2" equal to "%2"
# |  %2 = shufflevector <8 x ptr> %1, <8 x ptr> poison, <8 x i32> zeroinitializer
# |                                                                              ^
# | <stdin>:56:78: note: pattern attempts to capture variables: "TMP3"
# |  %2 = shufflevector <8 x ptr> %1, <8 x ptr> poison, <8 x i32> zeroinitializer
# |                                                                              ^
# | <stdin>:57:2: note: possible intended match here
# |  %3 = getelementptr inbounds [8 x i8], <8 x ptr> %2, <8 x i64> <i64 0, i64 3, i64 7, i64 11, i64 18, i64 21, i64 27, i64 32>
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SLPVectorizer\X86\cache-hint.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            51:  ret void 
# |            52: } 
# |            53:  
# |            54: define void @gather_identical_hints(ptr noalias %src, ptr noalias %dst) #0 { 
# |            55:  %1 = insertelement <8 x ptr> poison, ptr %src, i64 0 
# |            56:  %2 = shufflevector <8 x ptr> %1, <8 x ptr> poison, <8 x i32> zeroinitializer 
# | next:137'0                                                                                 {   search range start (exclusive)
# | next:137'1                                                                                     error: no match found in search range
# | next:137'2                                                                                     with "TMP2" equal to "%2"
# | next:137'3                                                                                     pattern attempts to capture variables: "TMP3"
# |            57:  %3 = getelementptr inbounds [8 x i8], <8 x ptr> %2, <8 x i64> <i64 0, i64 3, i64 7, i64 11, i64 18, i64 21, i64 27, i64 32> 
# | next:137'4      ?                                                                                                                             possible intended match
# |            58:  %dst0 = getelementptr inbounds double, ptr %dst, i64 0 
# |            59:  %4 = call <8 x double> @llvm.masked.gather.v8f64.v8p0(<8 x ptr> align 8 %3, <8 x i1> splat (i1 true), <8 x double> poison), !mem.cache_hint !0 
# |            60:  %5 = fadd <8 x double> %4, splat (double 1.000000e+00) 
# |            61:  store <8 x double> %5, ptr %dst0, align 8 
# |            62:  ret void 
# |            63: } 
# |            64:  
# |            65: define void @masked_store_identical_hints(ptr noalias %src, ptr noalias %dst) #0 { 
# | next:137'5                                               }                                          search range end (exclusive)
# |            66:  %v = load <8 x i32>, ptr %src, align 4 
# |            67:  %dst0 = getelementptr inbounds i32, ptr %dst, i64 0 
# |            68:  %1 = shufflevector <8 x i32> %v, <8 x i32> poison, <15 x i32> <i32 0, i32 poison, i32 1, i32 poison, i32 2, i32 poison, i32 3, i32 poison, i32 4, i32 poison, i32 5, i32 poison, i32 6, i32 poison, i32 7> 
# |            69:  call void @llvm.masked.store.v15i32.p0(<15 x i32> %1, ptr align 4 %dst0, <15 x i1> <i1 true, i1 false, i1 true, i1 false, i1 true, i1 false, i1 true, i1 false, i1 true, i1 false, i1 true, i1 false, i1 true, i1 false, i1 true>), !mem.cache_hint !2 
# |            70:  ret void 
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-branch-commits mailing list