1 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-scops -analyze < %s | FileCheck %s
2 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-scops -polly-delinearize -analyze < %s | FileCheck %s
3 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-scops -polly-allow-nonaffine -analyze < %s | FileCheck %s -check-prefix=NONAFFINE
4 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-scops -polly-delinearize -polly-allow-nonaffine -analyze < %s | FileCheck %s -check-prefix=NONAFFINE
5 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"
6 target triple = "x86_64-apple-macosx10.7.2"
9 ; for (i = 0; i < 1024; i++)
13 define void @foo(i64 *%A) nounwind uwtable ssp {
17 entry.split: ; preds = %entry
20 for.body: ; preds = %entry.split, %for.body
21 %indvar = phi i64 [ 0, %entry.split ], [ %indvar.next, %for.body ]
22 %mul = mul nsw i64 %indvar, %indvar
23 %arrayidx = getelementptr inbounds i64, i64* %A, i64 %mul
24 store i64 %indvar, i64* %arrayidx, align 4
25 %indvar.next = add nsw i64 %indvar, 1
26 %exitcond = icmp ne i64 %indvar.next, 1024
27 br i1 %exitcond, label %for.body, label %for.end
29 for.end: ; preds = %for.body
33 ; CHECK-NOT: Stmt_for_body
34 ; NONAFFINE: { Stmt_for_body[i0] -> MemRef_A[o0] : o0 >= -1152921504606846976 and o0 <= 1152921504606846973 };