[llvm] [VectorCombine] Preserve unsigned indices in scalarized GEPs (PR #212470)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 16 12:05:13 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 180648 tests passed
* 3688 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.Transforms/VectorCombine/load-insert-store-invariant-group.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -S -passes=vector-combine -data-layout=e-p:64:64 < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/VectorCombine/load-insert-store-invariant-group.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/VectorCombine/load-insert-store-invariant-group.ll --check-prefix=VC
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -S -passes=vector-combine -data-layout=e-p:64:64
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/VectorCombine/load-insert-store-invariant-group.ll --check-prefix=VC
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/VectorCombine/load-insert-store-invariant-group.ll:37:12: error: VC-NEXT: expected string not found in input
# | ; VC-NEXT: [[TMP0:%.*]] = getelementptr inbounds <8 x i16>, ptr [[P]], i32 0, i32 1
# |            ^
# | <stdin>:15:63: note: scanning from here
# |  %elt = getelementptr inbounds <8 x i16>, ptr %p, i32 0, i32 1
# |                                                               ^
# | <stdin>:15:63: note: with "P" equal to "%p"
# |  %elt = getelementptr inbounds <8 x i16>, ptr %p, i32 0, i32 1
# |                                                               ^
# | <stdin>:15:63: note: pattern attempts to capture variables: "TMP0"
# |  %elt = getelementptr inbounds <8 x i16>, ptr %p, i32 0, i32 1
# |                                                               ^
# | <stdin>:16:2: note: possible intended match here
# |  %1 = getelementptr inbounds <8 x i16>, ptr %p, i64 0, i64 1
# |  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/VectorCombine/load-insert-store-invariant-group.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           10:  %r = load i16, ptr getelementptr inbounds nuw (i8, ptr @g, i64 2), align 2, !invariant.group !0 
# |           11:  ret i16 %r 
# |           12: } 
# |           13:  
# |           14: define i16 @insert_store_invariant_group_argument(ptr %p) { 
# |           15:  %elt = getelementptr inbounds <8 x i16>, ptr %p, i32 0, i32 1 
# | next:37'0                                                                  {   search range start (exclusive)
# | next:37'1                                                                      error: no match found in search range
# | next:37'2                                                                      with "P" equal to "%p"
# | next:37'3                                                                      pattern attempts to capture variables: "TMP0"
# |           16:  %1 = getelementptr inbounds <8 x i16>, ptr %p, i64 0, i64 1 
# | next:37'4      ?                                                             possible intended match
# |           17:  store i16 1, ptr %1, align 2 
# |           18:  store i16 2, ptr %elt, align 2 
# |           19:  %r = load i16, ptr %elt, align 2, !invariant.group !0 
# |           20:  ret i16 %r 
# |           21: } 
# |           22:  
# |           23: !0 = !{} 
# | next:37'5              } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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/212470


More information about the llvm-commits mailing list