annotate polly/test/ScheduleOptimizer/vivid-vbi-gen-vivid_vbi_gen_sliced-before-llvmreduced.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-vectorizer=stripmine -polly-isl-arg=--no-schedule-serialize-sccs -polly-tiling=0 -polly-print-opt-isl -disable-output < %s | FileCheck %s
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
2
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
3 ; isl_schedule_node_band_sink may sink into multiple children.
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
4 ; https://llvm.org/PR52637
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
5
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
6 %struct.v4l2_sliced_vbi_data = type { [48 x i8] }
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
7
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
8 define void @vivid_vbi_gen_sliced() {
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
9 entry:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
10 br label %for.body
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
11
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
12 for.body: ; preds = %vivid_vbi_gen_teletext.exit, %entry
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
13 %i.015 = phi i32 [ 0, %entry ], [ %inc, %vivid_vbi_gen_teletext.exit ]
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
14 %data0.014 = phi ptr [ null, %entry ], [ %incdec.ptr, %vivid_vbi_gen_teletext.exit ]
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
15 %arrayidx.i = getelementptr inbounds %struct.v4l2_sliced_vbi_data, ptr %data0.014, i32 0, i32 0, i32 6
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
16 %0 = load i8, ptr %arrayidx.i, align 1
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
17 store i8 %0, ptr %data0.014, align 1
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
18 br label %for.body.for.body_crit_edge.i
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
19
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
20 for.body.for.body_crit_edge.i: ; preds = %for.body.for.body_crit_edge.i, %for.body
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
21 %inc10.i13 = phi i32 [ 1, %for.body ], [ %inc10.i, %for.body.for.body_crit_edge.i ]
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
22 %arrayidx2.phi.trans.insert.i = getelementptr inbounds %struct.v4l2_sliced_vbi_data, ptr %data0.014, i32 0, i32 0, i32 %inc10.i13
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
23 store i8 0, ptr %arrayidx2.phi.trans.insert.i, align 1
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
24 %inc10.i = add nuw nsw i32 %inc10.i13, 1
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
25 %exitcond.not.i = icmp eq i32 %inc10.i13, 42
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
26 br i1 %exitcond.not.i, label %vivid_vbi_gen_teletext.exit, label %for.body.for.body_crit_edge.i
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
27
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
28 vivid_vbi_gen_teletext.exit: ; preds = %for.body.for.body_crit_edge.i
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
29 %incdec.ptr = getelementptr inbounds %struct.v4l2_sliced_vbi_data, ptr %data0.014, i32 1
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
30 %inc = add nuw nsw i32 %i.015, 1
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
31 %exitcond.not = icmp eq i32 %i.015, 1
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
32 br i1 %exitcond.not, label %for.end, label %for.body
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
33
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
34 for.end: ; preds = %vivid_vbi_gen_teletext.exit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
35 ret void
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
36 }
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
37
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
38
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
39 ; CHECK: schedule:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
40 ; CHECK: schedule:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
41 ; CHECK: mark: "SIMD"
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
42 ; CHECK: schedule:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
43 ; CHECK: mark: "SIMD"
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
44 ; CHECK: schedule: