• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt %loadPolly -polly-codegen -S -verify-dom-info < %s | FileCheck %s
2;
3; CHECK-NOT: br i1 true, label %polly.{{.*}}, label %polly.{{.*}}
4;
5;    void jd(int *A) {
6;      for (int i = 0; i < 1024; i++)
7;        A[i] = i;
8;    }
9;
10target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
11
12define void @jd(i32* %A) {
13entry:
14  br label %for.cond
15
16for.cond:                                         ; preds = %for.inc, %entry
17  %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 0, %entry ]
18  %exitcond = icmp ne i64 %indvars.iv, 1024
19  br i1 %exitcond, label %for.body, label %for.end
20
21for.body:                                         ; preds = %for.cond
22  %arrayidx = getelementptr inbounds i32, i32* %A, i64 %indvars.iv
23  %tmp = trunc i64 %indvars.iv to i32
24  store i32 %tmp, i32* %arrayidx, align 4
25  br label %for.inc
26
27for.inc:                                          ; preds = %for.body
28  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
29  br label %for.cond
30
31for.end:                                          ; preds = %for.cond
32  ret void
33}
34