comparison polly/test/ScopInfo/isl_trip_count_03.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
comparison
equal deleted inserted replaced
237:c80f45b162ad 252:1f2b6ac9f198
34 for.body.lr.ph: ; preds = %entry.split 34 for.body.lr.ph: ; preds = %entry.split
35 br label %for.body 35 br label %for.body
36 36
37 for.body: ; preds = %for.body.lr.ph, %for.body 37 for.body: ; preds = %for.body.lr.ph, %for.body
38 %indvar = phi i64 [ 0, %for.body.lr.ph ], [ %indvar.next, %for.next ] 38 %indvar = phi i64 [ 0, %for.body.lr.ph ], [ %indvar.next, %for.next ]
39 %arrayidx = getelementptr [100 x i32], [100 x i32]* @A, i64 0, i64 %indvar 39 %arrayidx = getelementptr [100 x i32], ptr @A, i64 0, i64 %indvar
40 %0 = mul i64 %indvar, 2 40 %0 = mul i64 %indvar, 2
41 %1 = add i64 %0, 2 41 %1 = add i64 %0, 2
42 %add1 = trunc i64 %1 to i32 42 %add1 = trunc i64 %1 to i32
43 %cmp = icmp slt i32 %add1, %n 43 %cmp = icmp slt i32 %add1, %n
44 %indvar.next = add i64 %indvar, 1 44 %indvar.next = add i64 %indvar, 1
45 br i1 %cmp, label %for.next, label %for.cond.for.end_crit_edge 45 br i1 %cmp, label %for.next, label %for.cond.for.end_crit_edge
46 46
47 for.next: 47 for.next:
48 %2 = load i32, i32* %arrayidx, align 4 48 %2 = load i32, ptr %arrayidx, align 4
49 %add = add nsw i32 %2, 1 49 %add = add nsw i32 %2, 1
50 store i32 %add, i32* %arrayidx, align 4 50 store i32 %add, ptr %arrayidx, align 4
51 br label %for.body 51 br label %for.body
52 52
53 for.cond.for.end_crit_edge: ; preds = %for.body 53 for.cond.for.end_crit_edge: ; preds = %for.body
54 br label %for.end 54 br label %for.end
55 55