1 ; RUN: opt %loadNPMPolly '-passes=print<polly-ast>' -disable-output < %s | FileCheck %s
10 ; __sync_synchronize();
16 ; } while (i < 2 * n);
17 ; __sync_synchronize();
30 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
32 @A = common global [20 x i32] zeroinitializer, align 4 ; <ptr> [#uses=1]
34 define void @bar(i32 %n) nounwind {
37 %tmp = mul i32 %n, 2 ; <i32> [#uses=2]
38 %tmp1 = icmp sgt i32 %tmp, 1 ; <i1> [#uses=1]
39 %smax = select i1 %tmp1, i32 %tmp, i32 1 ; <i32> [#uses=1]
42 do.body: ; preds = %do.cond, %entry
43 %0 = phi i32 [ 0, %entry ], [ %inc, %do.cond ] ; <i32> [#uses=2]
45 %inc = add nsw i32 %0, 1 ; <i32> [#uses=2]
48 do.cond: ; preds = %do.body
49 %exitcond = icmp ne i32 %inc, %smax ; <i1> [#uses=1]
50 br i1 %exitcond, label %do.body, label %do.end
52 do.end: ; preds = %do.cond
57 define i32 @main() nounwind {
60 call void @bar(i32 10)
61 %tmp = load i32, ptr @A ; <i32> [#uses=1]
62 %cmp = icmp eq i32 %tmp, 19 ; <i1> [#uses=1]
63 br i1 %cmp, label %if.then, label %if.else
65 if.then: ; preds = %entry
68 if.else: ; preds = %entry
71 return: ; preds = %if.else, %if.then
72 %retval.0 = phi i32 [ 0, %if.then ], [ 1, %if.else ] ; <i32> [#uses=1]
75 ; CHECK: Scop: do.body => do.end