1 ; RUN: opt %loadPolly -polly-print-scops -disable-output < %s | FileCheck %s
3 ; Check that we create two alias groups since the minimal/maximal accesses
6 ; CHECK: Alias Groups (2):
8 ; void jd(int b, int *A, int *B) {
9 ; for (int i = 0; i < 1024; i++) {
17 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
19 define void @jd(i32 %b, ptr %A, ptr %B) {
23 for.cond: ; preds = %for.inc, %entry
24 %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 0, %entry ]
25 %exitcond = icmp ne i64 %indvars.iv, 1024
26 br i1 %exitcond, label %for.body, label %for.end
28 for.body: ; preds = %for.cond
29 %tobool = icmp eq i32 %b, 0
30 br i1 %tobool, label %if.else, label %if.then
32 if.then: ; preds = %for.body
33 %arrayidx = getelementptr inbounds i32, ptr %B, i64 5
34 %tmp = load i32, ptr %arrayidx, align 4
35 %arrayidx1 = getelementptr inbounds i32, ptr %A, i64 %indvars.iv
36 store i32 %tmp, ptr %arrayidx1, align 4
39 if.else: ; preds = %for.body
40 %arrayidx2 = getelementptr inbounds i32, ptr %A, i64 7
41 %tmp1 = load i32, ptr %arrayidx2, align 4
42 %arrayidx4 = getelementptr inbounds i32, ptr %B, i64 %indvars.iv
43 store i32 %tmp1, ptr %arrayidx4, align 4
46 if.end: ; preds = %if.else, %if.then
49 for.inc: ; preds = %if.end
50 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
53 for.end: ; preds = %for.cond