1 ; RUN: opt %loadPolly -basicaa -polly-ast -analyze < %s | FileCheck %s
3 ; for (i = 0; i < 1024; i++)
6 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-S128"
8 define void @run-time-condition(i16* noalias %A, i16* noalias %B) {
12 for.cond: ; preds = %for.body, %entry
13 %indvar = phi i64 [ 0, %entry ], [ %inc, %for.body ]
14 %cmp = icmp slt i64 %indvar, 1024
15 br i1 %cmp, label %for.body, label %for.end
17 for.body: ; preds = %for.cond
18 %arrayidx = getelementptr inbounds i16, i16* %B, i64 0
19 %load = load i16, i16* %arrayidx
20 %add10 = add nsw i16 %load, 1
21 %arrayidx13 = getelementptr inbounds i16, i16* %A, i64 %indvar
22 store i16 %add10, i16* %arrayidx13, align 2
23 %inc = add nsw i64 %indvar, 1
26 for.end: ; preds = %for.cond
31 ; CHECK: for (int c0 = 0; c0 <= 1023; c0 += 1)
32 ; CHECK: Stmt_for_body(c0);
34 ; CHECK: { /* original code */ }