llvm-project
68 строк · 2.6 Кб
1; RUN: opt %loadNPMPolly '-passes=print<polly-detect>,print<polly-function-scops>' -disable-output < %s 2>&1 \
2; RUN: | FileCheck %s -check-prefix=FUNC-SCOP
3; RUN: opt %loadNPMPolly '-passes=print<polly-detect>,scop(print<polly-dependences>)' -disable-output < %s 2>&1 \
4; RUN: | FileCheck %s -check-prefix=FUNC-DEPS
5;
6; FUNC-SCOP-NOT: Statement
7; FUNC-DEPS-NOT: RAW dependences
8;
9; Due to an infeasible run-time check, scop object is empty and we do not compute dependences.
10;
11target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
12
13%struct.tnode.1.7.13.67.121.175.217.307.325.337.349.367.379.391.433.445.667.727.733.739 = type { i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr }
14%struct.plist.0.6.12.66.120.174.216.306.324.336.348.366.378.390.432.444.666.726.732.738 = type { i32, ptr }
15
16@vFixedEdgeRoot = external global ptr, align 8
17@hEdgeRoot = external global ptr, align 8
18
19; Function Attrs: nounwind uwtable
20define void @readgeo() #0 {
21entry:
22%vx = alloca i32, align 4
23br label %if.end64
24
25if.end64: ; preds = %entry
26br label %for.body73
27
28for.body73: ; preds = %for.inc216, %if.end64
29%v.0101 = phi i32 [ 0, %for.inc216 ], [ 1, %if.end64 ]
30br i1 undef, label %if.then93, label %if.else
31
32if.then93: ; preds = %for.body73
33br label %for.inc216
34
35if.else: ; preds = %for.body73
36br i1 undef, label %if.then111, label %if.end116
37
38if.then111: ; preds = %if.else
39br label %if.end116
40
41if.end116: ; preds = %if.then111, %if.else
42%rippleCount.2 = phi i32 [ 1, %if.then111 ], [ undef, %if.else ]
43%rem11790 = and i32 %v.0101, 1
44%cmp118 = icmp eq i32 %rem11790, 0
45br i1 %cmp118, label %if.then120, label %if.else154
46
47if.then120: ; preds = %if.end116
48call void @tinsert()
49br label %if.end193
50
51if.else154: ; preds = %if.end116
52call void @tinsert()
53br label %if.end193
54
55if.end193: ; preds = %if.else154, %if.then120
56%0 = load i32, ptr %vx, align 4
57br label %for.inc216
58
59for.inc216: ; preds = %if.end193, %if.then93
60%rippleCount.3 = phi i32 [ undef, %if.then93 ], [ %rippleCount.2, %if.end193 ]
61%ux.2 = phi i32 [ undef, %if.then93 ], [ %0, %if.end193 ]
62br i1 undef, label %for.body73, label %for.end218
63
64for.end218: ; preds = %for.inc216
65unreachable
66}
67
68declare void @tinsert()
69