annotate polly/test/CodeGen/simple_vec_stride_one.ll @ 252:1f2b6ac9f198 llvm-original

LLVM16-1
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 18 Aug 2023 09:04:13 +0900
parents c4bab56944e8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
1 ; RUN: opt %loadPolly -polly-codegen -polly-vectorizer=polly \
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
2 ; RUN: < %s -S | FileCheck %s
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
3
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
4 ; CHECK: store <4 x double> %val.s2a_p_splat, <4 x double>* %vector_ptr
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
5 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
6
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
7 define void @update_access_functions(i64 %arg, double* %A, double* %B) {
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
8 bb3:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
9 br label %loop1
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
10
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
11 loop1:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
12 %indvar = phi i64 [ %indvar.next, %loop1 ], [ 0, %bb3 ]
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
13 %ptr1 = getelementptr inbounds double, double* %A, i64 %indvar
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
14 store double 42.0, double* %ptr1, align 8
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
15 %indvar.next = add nuw nsw i64 %indvar, 1
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
16 %cmp = icmp ne i64 %indvar.next, 4
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
17 br i1 %cmp, label %loop1, label %loop2
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
18
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
19 loop2:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
20 %indvar.2 = phi i64 [ %indvar.2.next, %loop2 ], [ 0, %loop1 ]
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
21 %ptr2 = getelementptr inbounds double, double* %A, i64 %indvar.2
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
22 %val = load double, double* %ptr2, align 8
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
23 %indvar.2.next = add nuw nsw i64 %indvar.2, 1
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
24 %cmp.2 = icmp ne i64 %indvar.2.next, 4
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
25 br i1 %cmp.2, label %loop2, label %loop3
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
26
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
27 loop3:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
28 %indvar.3 = phi i64 [ %indvar.3.next, %loop3 ], [ 0, %loop2 ]
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
29 %ptr3 = getelementptr inbounds double, double* %A, i64 %indvar.3
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
30 store double %val, double* %ptr3, align 8
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
31 %indvar.3.next = add nuw nsw i64 %indvar.3, 1
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
32 %cmp.3 = icmp ne i64 %indvar.3.next, 4
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
33 br i1 %cmp.3, label %loop3, label %exit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
34
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
35 exit:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
36 ret void
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
37 }