1; RUN: opt %loadPolly %defaultOpts -polly-cloog -analyze %s | FileCheck %s 2 3; ModuleID = 'single_loop_one_iteration.s' 4target 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" 5target triple = "x86_64-unknown-linux-gnu" 6 7define i32 @main() nounwind { 8entry: 9 %A = alloca [20 x i32], align 4 ; <[20 x i32]*> [#uses=3] 10 %arraydecay = getelementptr inbounds [20 x i32]* %A, i32 0, i32 0 ; <i32*> [#uses=1] 11 %arrayidx = getelementptr inbounds i32* %arraydecay, i64 0 ; <i32*> [#uses=1] 12 store i32 0, i32* %arrayidx 13 fence seq_cst 14 br label %for.cond 15 16for.cond: ; preds = %for.inc, %entry 17 %indvar = phi i64 [ %indvar.next, %for.inc ], [ 0, %entry ] ; <i64> [#uses=3] 18 %arrayidx3 = getelementptr [20 x i32]* %A, i64 0, i64 %indvar ; <i32*> [#uses=1] 19 %exitcond = icmp ne i64 %indvar, 1 ; <i1> [#uses=1] 20 br i1 %exitcond, label %for.body, label %for.end 21 22for.body: ; preds = %for.cond 23 store i32 1, i32* %arrayidx3 24 br label %for.inc 25 26for.inc: ; preds = %for.body 27 %indvar.next = add i64 %indvar, 1 ; <i64> [#uses=1] 28 br label %for.cond 29 30for.end: ; preds = %for.cond 31 fence seq_cst 32 %arraydecay5 = getelementptr inbounds [20 x i32]* %A, i32 0, i32 0 ; <i32*> [#uses=1] 33 %arrayidx6 = getelementptr inbounds i32* %arraydecay5, i64 0 ; <i32*> [#uses=1] 34 %tmp7 = load i32* %arrayidx6 ; <i32> [#uses=1] 35 %cmp8 = icmp eq i32 %tmp7, 1 ; <i1> [#uses=1] 36 br i1 %cmp8, label %if.then, label %if.else 37 38if.then: ; preds = %for.end 39 br label %return 40 41if.else: ; preds = %for.end 42 br label %return 43 44return: ; preds = %if.else, %if.then 45 %retval.0 = phi i32 [ 0, %if.then ], [ 1, %if.else ] ; <i32> [#uses=1] 46 ret i32 %retval.0 47} 48 49; CHECK: Stmt_for_body(0); 50