[llvm] [SLP] Fix insert point for insertvalue buildvector with copyable operands (PR #203994)
Aditya Chaudhary via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 01:41:54 PDT 2026
aditya-chaudhary1 wrote:
Hi @alexey-bataev
This `SLPVectorizer/PowerPC/insertvalue-with-copyable-args.ll` test is failing in PowerPC (both Linux and AIX). Could you please take a look at the attached LIT failure?
```
wlit llvm/test/Transforms/SLPVectorizer/PowerPC/insertvalue-with-copyable-args.ll -v
-- Testing: 1 tests, 1 workers --
FAIL: LLVM :: Transforms/SLPVectorizer/PowerPC/insertvalue-with-copyable-args.ll (1 of 1)
******************** TEST 'LLVM :: Transforms/SLPVectorizer/PowerPC/insertvalue-with-copyable-args.ll' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/adityac2/llvm/dev/build/bin/opt -S -mtriple=powerpc64le-unknown-linux-gnu -passes=slp-vectorizer < /home/adityac2/llvm/dev/llvm-project/llvm/test/Transforms/SLPVectorizer/PowerPC/insertvalue-with-copyable-args.ll | /home/adityac2/llvm/dev/build/bin/FileCheck /home/adityac2/llvm/dev/llvm-project/llvm/test/Transforms/SLPVectorizer/PowerPC/insertvalue-with-copyable-args.ll
# executed command: /home/adityac2/llvm/dev/build/bin/opt -S -mtriple=powerpc64le-unknown-linux-gnu -passes=slp-vectorizer
# executed command: /home/adityac2/llvm/dev/build/bin/FileCheck /home/adityac2/llvm/dev/llvm-project/llvm/test/Transforms/SLPVectorizer/PowerPC/insertvalue-with-copyable-args.ll
# .---command stderr------------
# | /home/adityac2/llvm/dev/llvm-project/llvm/test/Transforms/SLPVectorizer/PowerPC/insertvalue-with-copyable-args.ll:8:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[VEC2STRUCT_SLOT:%.*]] = alloca { i64, i64 }, align 16
# | ^
# | <stdin>:7:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:8:25: note: possible intended match here
# | %retval.sroa.0.0.copyload.i = load i64, ptr %call39.i, align 8
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/adityac2/llvm/dev/llvm-project/llvm/test/Transforms/SLPVectorizer/PowerPC/insertvalue-with-copyable-args.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ; ModuleID = '<stdin>'
# | 2: source_filename = "<stdin>"
# | 3: target datalayout = "e-m:e-Fn32-i64:64-i128:128-n32:64-S128-v256:256:256-v512:512:512"
# | 4: target triple = "powerpc64le-unknown-linux-gnu"
# | 5:
# | 6: define { i64, i64 } @test(ptr %call39.i) {
# | 7: entry:
# | next:8'0 { search range start (exclusive)
# | next:8'1 error: no match found in search range
# | 8: %retval.sroa.0.0.copyload.i = load i64, ptr %call39.i, align 8
# | next:8'2 ? possible intended match
# | 9: %retval.sroa.2.0.call39.sroa_idx.i = getelementptr i8, ptr %call39.i, i64 8
# | 10: %retval.sroa.2.0.copyload.i = load i64, ptr %retval.sroa.2.0.call39.sroa_idx.i, align 8
# | 11: %call.i.i = load volatile i1, ptr null, align 4294967296
# | 12: br i1 %call.i.i, label %exit, label %if.then.i.i
# | 13:
# | .
# | .
# | .
# | 18: exit: ; preds = %if.then.i.i, %entry
# | 19: %.fca.0.insert.i = insertvalue { i64, i64 } poison, i64 %retval.sroa.0.0.copyload.i, 0
# | 20: %retval.sroa.2.8.insert.ext = and i64 %retval.sroa.2.0.copyload.i, 1
# | 21: %.fca.1.insert = insertvalue { i64, i64 } %.fca.0.insert.i, i64 %retval.sroa.2.8.insert.ext, 1
# | 22: ret { i64, i64 } %.fca.1.insert
# | 23: }
# | next:8'3 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
********************
********************
Failed Tests (1):
LLVM :: Transforms/SLPVectorizer/PowerPC/insertvalue-with-copyable-args.ll
Testing Time: 0.16s
Total Discovered Tests: 1
Failed: 1 (100.00%)
```
I have confirmed slp-vectorize pass is running.
`Running pass: SLPVectorizerPass`
looks like there is no change in IR after this slp-vectorize pass
```
Verifying function test
*** IR Dump After SLPVectorizerPass on test omitted because no change
```
https://github.com/llvm/llvm-project/pull/203994
More information about the llvm-commits
mailing list