Files
clang-p2996/llvm/test/Transforms/SLPVectorizer/SystemZ/minbitwidth-non-vector-root.ll
Alexey Bataev bb3e0d7fc3 [SLP]Fix PR79193: skip analysis of gather nodes for minbitwidth.
No need in trying to analyze small graphs with gather node only to avoid
crash.
2024-01-23 12:44:49 -08:00

17 lines
619 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
; RUN: opt -passes=slp-vectorizer -S -slp-optimize-identity-hor-reduction-ops=false < %s -mtriple=s390x-ibm-linux -mcpu=arch13 | FileCheck %s
define void @foo() {
; CHECK-LABEL: define void @foo(
; CHECK-SAME: ) #[[ATTR0:[0-9]+]] {
; CHECK-NEXT: [[TMP1:%.*]] = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> zeroinitializer)
; CHECK-NEXT: store i32 [[TMP1]], ptr null, align 4
; CHECK-NEXT: ret void
;
%1 = add i32 0, 0
%2 = add i32 %1, 0
%3 = add i32 %2, 0
store i32 %3, ptr null, align 4
ret void
}