1 ; RUN: opt %loadPolly -basic-aa -polly-allow-modref-calls -polly-print-detect -disable-output < %s | FileCheck %s -check-prefix=MODREF
2 ; RUN: opt %loadPolly -basic-aa -polly-print-detect -disable-output < %s | FileCheck %s
4 ; CHECK-NOT: Valid Region for Scop: for.body => for.end
5 ; MODREF: Valid Region for Scop: for.body => for.end
11 ; for (int i = 0; i < 1024; i++)
15 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
17 declare i32 @func(ptr %A) #1
19 define void @jd(ptr %A) {
23 for.body: ; preds = %entry, %for.inc
24 %i = phi i64 [ 0, %entry ], [ %i.next, %for.inc ]
25 %call = call i32 @func(ptr %A)
26 %tmp = add nsw i64 %i, 2
27 %arrayidx = getelementptr inbounds i32, ptr %A, i64 %tmp
28 store i32 %call, ptr %arrayidx, align 4
31 for.inc: ; preds = %for.body
32 %i.next = add nuw nsw i64 %i, 1
33 %exitcond = icmp ne i64 %i.next, 1024
34 br i1 %exitcond, label %for.body, label %for.end
36 for.end: ; preds = %for.inc
40 attributes #1 = { nounwind readonly }