Update Polly tests to handle explicitly typed gep changes in LLVM
[polly-mirror.git] / test / ScopDetect / remove_all_children.ll
blob42f0fa8193bab56de4ce3ff657bcd0d3153742fd
1 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-detect -analyze < %s | FileCheck %s
2 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-detect -analyze < %s | FileCheck %s
4 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"
5 target triple = "x86_64-unknown-linux-gnu"
7 define void @remove_all_children(i32* %eclass) {
8 entry:
9   br label %while.body
11 while.cond.loopexit:                              ; preds = %while.body50, %while.end44
12   fence seq_cst
13   br label %while.cond.backedge
15 while.body:                                       ; preds = %while.cond.backedge, %entry
16   br label %if.end33
18 while.cond.backedge:                              ; preds = %while.end30, %while.cond.loopexit
19   br i1 false, label %while.body, label %while.end60
21 if.end33:                                         ; preds = %while.end30
22   br i1 false, label %while.body36, label %while.end44
24 while.body36:                                     ; preds = %while.body36, %while.body36.lr.ph
25   %indvar77 = phi i64 [ 0, %if.end33 ], [ %indvar.next78, %while.body36 ]
26   %arrayidx40 = getelementptr i32, i32* %eclass, i64 0
27   %indvar.next78 = add i64 %indvar77, 1
28   br i1 false, label %while.body36, label %while.end44
30 while.end44:                                      ; preds = %while.body36, %if.end33
31   br i1 false, label %while.body50, label %while.cond.loopexit
33 while.body50:                                     ; preds = %while.body50, %while.body50.lr.ph
34   %indvar79 = phi i64 [ 0, %while.end44 ], [ %indvar.next80, %while.body50 ]
35   %arrayidx55 = getelementptr i32, i32* %eclass, i64 0
36   store i32 0, i32* %arrayidx55, align 4
37   %indvar.next80 = add i64 %indvar79, 1
38   br i1 false, label %while.body50, label %while.cond.loopexit
40 while.end60:                                      ; preds = %while.cond.backedge
41   ret void
43 ; remove_all_children
44 ; CHECK-NOT: Valid Region
45 ; CHECK: Valid Region for Scop: if.end33 => while.cond.loopexit
46 ; CHECK-NOT: Valid Region