comparison polly/test/ScopInfo/reduction_disabled_multiplicative.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
32 %exitcond = icmp ne i32 %i1.0, 100 32 %exitcond = icmp ne i32 %i1.0, 100
33 br i1 %exitcond, label %for.body, label %for.end 33 br i1 %exitcond, label %for.body, label %for.end
34 34
35 for.body: ; preds = %for.cond 35 for.body: ; preds = %for.cond
36 %mul = mul nsw i32 %i1.0, 3 36 %mul = mul nsw i32 %i1.0, 3
37 %tmp = load i32, i32* @sum, align 4 37 %tmp = load i32, ptr @sum, align 4
38 %add = add nsw i32 %tmp, %mul 38 %add = add nsw i32 %tmp, %mul
39 store i32 %add, i32* @sum, align 4 39 store i32 %add, ptr @sum, align 4
40 %add2 = add nsw i32 %i1.0, 3 40 %add2 = add nsw i32 %i1.0, 3
41 %tmp1 = load i32, i32* @prod, align 4 41 %tmp1 = load i32, ptr @prod, align 4
42 %mul3 = mul nsw i32 %tmp1, %add2 42 %mul3 = mul nsw i32 %tmp1, %add2
43 store i32 %mul3, i32* @prod, align 4 43 store i32 %mul3, ptr @prod, align 4
44 br label %for.inc 44 br label %for.inc
45 45
46 for.inc: ; preds = %for.body 46 for.inc: ; preds = %for.body
47 %inc = add nsw i32 %i1.0, 1 47 %inc = add nsw i32 %i1.0, 1
48 br label %for.cond 48 br label %for.cond