• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt %loadPolly -polly-codegen-ppcg -polly-acc-dump-kernel-ir \
2; RUN: -disable-output < %s | \
3; RUN: FileCheck %s -check-prefix=KERNEL-IR
4
5; REQUIRES: pollyacc
6
7target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
8target triple = "x86_64-unknown-linux-gnu"
9
10; KERNEL-IR: store i32 0, i32 addrspace(1)* %polly.access.MemRef_sum_c, align 4
11; KERNEL-IR-NEXT: br label %polly.merge
12
13define void @kernel_dynprog([50 x [50 x i32]]* %sum_c) {
14entry:
15  br label %for.cond1.preheader
16
17for.cond1.preheader:                              ; preds = %entry
18  br label %for.body3
19
20for.cond1.loopexit:                               ; preds = %for.end
21  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
22  %exitcond57 = icmp ne i64 %indvars.iv.next56, 49
23  br i1 %exitcond57, label %for.body3, label %for.inc55
24
25for.body3:                                        ; preds = %for.cond1.loopexit, %for.cond1.preheader
26  %indvars.iv55 = phi i64 [ 0, %for.cond1.preheader ], [ %indvars.iv.next56, %for.cond1.loopexit ]
27  %indvars.iv48 = phi i64 [ 1, %for.cond1.preheader ], [ %indvars.iv.next49, %for.cond1.loopexit ]
28  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
29  %arrayidx10 = getelementptr inbounds [50 x [50 x i32]], [50 x [50 x i32]]* %sum_c, i64 %indvars.iv55, i64 %indvars.iv48, i64 %indvars.iv55
30  store i32 0, i32* %arrayidx10, align 4
31  %cmp1334 = icmp slt i64 %indvars.iv.next56, %indvars.iv48
32  br label %for.end
33
34for.end:                                          ; preds = %for.body3
35  br label %for.cond1.loopexit
36
37for.inc55:                                        ; preds = %for.cond1.loopexit
38  ret void
39}
40