Update Polly tests to handle explicitly typed gep changes in LLVM
[polly-mirror.git] / test / ScopInfo / 20111108-Parameter-not-detected.ll
blob6428f8361d8ad951f43b9a69d0a6626d19a39673
1 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-scops -analyze < %s | FileCheck %s
2 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"
3 target triple = "x86_64-unknown-linux-gnu"
5 declare void @foo()
7 define i32 @main(i8* %A) nounwind uwtable {
8 entry:
9   br label %for.cond
11 for.cond:                                         ; preds = %for.inc5, %entry
12   %indvar_out = phi i64 [ %indvar_out.next, %for.inc5 ], [ 0, %entry ]
13   call void @foo()
14   %tmp = add i64 %indvar_out, 2
15   %exitcond5 = icmp ne i64 %indvar_out, 1023
16   br i1 %exitcond5, label %for.body, label %for.end7
18 for.body:                                         ; preds = %for.cond
19   br label %for.cond1
21 for.cond1:                                        ; preds = %for.inc, %for.body
22   %indvar = phi i64 [ %indvar.next, %for.inc ], [ 0, %for.body ]
23   %exitcond = icmp ne i64 %indvar, 1023
24   br i1 %exitcond, label %for.body3, label %for.end
26 for.body3:                                        ; preds = %for.cond1
27   %tmp1 = add i64 %tmp, %indvar
28   %cmp4 = icmp sgt i64 %tmp1, 1000
29   br i1 %cmp4, label %if.then, label %if.end
31 if.then:                                          ; preds = %for.body3
32   %arrayidx = getelementptr i8, i8* %A, i64 %indvar
33   store i8 5, i8* %arrayidx
34   br label %if.end
36 if.end:                                           ; preds = %if.end.single_exit
37   br label %for.inc
39 for.inc:                                          ; preds = %if.end
40   %indvar.next = add i64 %indvar, 1
41   br label %for.cond1
43 for.end:                                          ; preds = %for.cond1
44   br label %for.inc5
46 for.inc5:                                         ; preds = %for.end
47   %indvar_out.next = add i64 %indvar_out, 1
48   br label %for.cond
50 for.end7:                                         ; preds = %for.cond
51   ret i32 0
54 ; CHECK: Context:
55 ; CHECK: p0: {0,+,1}<%for.cond>
57 ; CHECK: Domain :=
58 ; CHECK: [p_0] -> { Stmt_if_then[i0] : i0 >= 0 and i0 <= 1022 and i0 >= 999 - p_0 };