Mercurial > hg > CbC > CbC_llvm
comparison polly/test/ScopInfo/two-loops-one-infinite.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 |
---|---|
4 ; | 4 ; |
5 ; CHECK-NOT: Statements | 5 ; CHECK-NOT: Statements |
6 ; | 6 ; |
7 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n8:16:32-S64" | 7 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n8:16:32-S64" |
8 | 8 |
9 define void @foo(i32* noalias nocapture readonly %xxx, i32* noalias nocapture readonly %yyy, i8*** nocapture readonly %zzz, i32 %conv6) { | 9 define void @foo(ptr noalias nocapture readonly %xxx, ptr noalias nocapture readonly %yyy, ptr nocapture readonly %zzz, i32 %conv6) { |
10 while.body.us.preheader: | 10 while.body.us.preheader: |
11 %a2 = load i8**, i8*** %zzz, align 4 | 11 %a2 = load ptr, ptr %zzz, align 4 |
12 %sub = add nsw i32 %conv6, -1 | 12 %sub = add nsw i32 %conv6, -1 |
13 br label %while.body.us | 13 br label %while.body.us |
14 | 14 |
15 while.body.us: ; preds = %while.body.us.preheader, %if.then.us | 15 while.body.us: ; preds = %while.body.us.preheader, %if.then.us |
16 %uuu = phi i32 [ %www, %if.then.us ], [ 0, %while.body.us.preheader ] | 16 %uuu = phi i32 [ %www, %if.then.us ], [ 0, %while.body.us.preheader ] |
17 %a13 = load i32, i32* %yyy, align 8 | 17 %a13 = load i32, ptr %yyy, align 8 |
18 %vvv = icmp sgt i32 %a13, 0 | 18 %vvv = icmp sgt i32 %a13, 0 |
19 br i1 %vvv, label %while.body.13.us58.preheader, label %if.then.us | 19 br i1 %vvv, label %while.body.13.us58.preheader, label %if.then.us |
20 | 20 |
21 while.body.13.us58.preheader: ; preds = %while.body.us | 21 while.body.13.us58.preheader: ; preds = %while.body.us |
22 br label %while.body.13.us58 | 22 br label %while.body.13.us58 |
23 | 23 |
24 if.then.us: ; preds = %while.body.us | 24 if.then.us: ; preds = %while.body.us |
25 %add.us = add nuw nsw i32 %uuu, 1 | 25 %add.us = add nuw nsw i32 %uuu, 1 |
26 tail call void @goo(i8** %a2, i32 %uuu, i8** %a2, i32 %add.us, i32 %sub, i32 %a13) #3 | 26 tail call void @goo(ptr %a2, i32 %uuu, ptr %a2, i32 %add.us, i32 %sub, i32 %a13) #3 |
27 %www = add nuw nsw i32 %uuu, %conv6 | 27 %www = add nuw nsw i32 %uuu, %conv6 |
28 %a14 = load i32, i32* %xxx, align 4 | 28 %a14 = load i32, ptr %xxx, align 4 |
29 %cmp.us = icmp slt i32 %www, %a14 | 29 %cmp.us = icmp slt i32 %www, %a14 |
30 br i1 %cmp.us, label %while.body.us, label %while.end.21.loopexit145 | 30 br i1 %cmp.us, label %while.body.us, label %while.end.21.loopexit145 |
31 | 31 |
32 while.body.13.us58: | 32 while.body.13.us58: |
33 br label %while.body.13.us58 | 33 br label %while.body.13.us58 |
34 | 34 |
35 while.end.21.loopexit145: | 35 while.end.21.loopexit145: |
36 ret void | 36 ret void |
37 } | 37 } |
38 | 38 |
39 declare void @goo(i8**, i32, i8**, i32, i32, i32) #1 | 39 declare void @goo(ptr, i32, ptr, i32, i32, i32) #1 |
40 | 40 |