[llvm] [SLP][NFC] Add a new test for store chains that mix different sizes of values (PR #101979)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 09:15:33 PDT 2024
================
@@ -0,0 +1,34 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt -S --passes=slp-vectorizer -mtriple=x86_64-unknown-linux < %s | FileCheck %s
+
+define void @test(ptr %p) {
+; CHECK-LABEL: define void @test(
+; CHECK-SAME: ptr [[P:%.*]]) {
+; CHECK-NEXT: [[ENTRY:.*:]]
+; CHECK-NEXT: [[IDX1:%.*]] = getelementptr i8, ptr [[P]], i64 1
+; CHECK-NEXT: [[IDX_64_9:%.*]] = getelementptr i64, ptr [[P]], i64 9
+; CHECK-NEXT: store i64 1, ptr [[IDX_64_9]], align 8
+; CHECK-NEXT: store <8 x i8> zeroinitializer, ptr [[IDX1]], align 4
----------------
alexey-bataev wrote:
The check must be formed with the current version of the compiler. If it is vectorized already, your patch does nothing.
https://github.com/llvm/llvm-project/pull/101979
More information about the llvm-commits
mailing list