Mercurial > hg > CbC > CbC_llvm
comparison polly/test/IstAstInfo/reduction_clauses_onedimensional_access.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 |
---|---|
8 ; sum[j] ^= j; | 8 ; sum[j] ^= j; |
9 ; } | 9 ; } |
10 ; | 10 ; |
11 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-n32-S64" | 11 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-n32-S64" |
12 | 12 |
13 define void @f(i32 %N, i32 %M, i32* %sum) { | 13 define void @f(i32 %N, i32 %M, ptr %sum) { |
14 entry: | 14 entry: |
15 br label %for.cond | 15 br label %for.cond |
16 | 16 |
17 for.cond: ; preds = %for.inc4, %entry | 17 for.cond: ; preds = %for.inc4, %entry |
18 %i.0 = phi i32 [ 0, %entry ], [ %inc5, %for.inc4 ] | 18 %i.0 = phi i32 [ 0, %entry ], [ %inc5, %for.inc4 ] |
26 %j.0 = phi i32 [ 0, %for.body ], [ %inc, %for.inc ] | 26 %j.0 = phi i32 [ 0, %for.body ], [ %inc, %for.inc ] |
27 %cmp2 = icmp slt i32 %j.0, %M | 27 %cmp2 = icmp slt i32 %j.0, %M |
28 br i1 %cmp2, label %for.body3, label %for.end | 28 br i1 %cmp2, label %for.body3, label %for.end |
29 | 29 |
30 for.body3: ; preds = %for.cond1 | 30 for.body3: ; preds = %for.cond1 |
31 %arrayidx = getelementptr inbounds i32, i32* %sum, i32 %j.0 | 31 %arrayidx = getelementptr inbounds i32, ptr %sum, i32 %j.0 |
32 %tmp = load i32, i32* %arrayidx, align 4 | 32 %tmp = load i32, ptr %arrayidx, align 4 |
33 %xor = xor i32 %tmp, %j.0 | 33 %xor = xor i32 %tmp, %j.0 |
34 store i32 %xor, i32* %arrayidx, align 4 | 34 store i32 %xor, ptr %arrayidx, align 4 |
35 br label %for.inc | 35 br label %for.inc |
36 | 36 |
37 for.inc: ; preds = %for.body3 | 37 for.inc: ; preds = %for.body3 |
38 %inc = add nsw i32 %j.0, 1 | 38 %inc = add nsw i32 %j.0, 1 |
39 br label %for.cond1 | 39 br label %for.cond1 |