1 ; RUN: opt %loadNPMPolly '-passes=print<polly-detect>' -disable-output < %s 2>&1 | FileCheck %s
3 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 define void @remove_all_children(ptr %eclass) {
9 while.cond.loopexit: ; preds = %while.body50, %while.end44
11 br label %while.cond.backedge
13 while.body: ; preds = %while.cond.backedge, %entry
16 while.cond.backedge: ; preds = %while.end30, %while.cond.loopexit
17 br i1 false, label %while.body, label %while.end60
19 if.end33: ; preds = %while.end30
20 br i1 false, label %while.body36, label %while.end44
22 while.body36: ; preds = %while.body36, %while.body36.lr.ph
23 %indvar77 = phi i64 [ 0, %if.end33 ], [ %indvar.next78, %while.body36 ]
24 %indvar.next78 = add i64 %indvar77, 1
25 br i1 false, label %while.body36, label %while.end44
27 while.end44: ; preds = %while.body36, %if.end33
28 br i1 false, label %while.body50, label %while.cond.loopexit
30 while.body50: ; preds = %while.body50, %while.body50.lr.ph
31 %indvar79 = phi i64 [ 0, %while.end44 ], [ %indvar.next80, %while.body50 ]
32 store i32 0, ptr %eclass, align 4
33 %indvar.next80 = add i64 %indvar79, 1
34 br i1 false, label %while.body50, label %while.cond.loopexit
36 while.end60: ; preds = %while.cond.backedge
40 ; CHECK-NOT: Valid Region
41 ; CHECK: Valid Region for Scop: if.end33 => while.cond.loopexit
42 ; CHECK-NOT: Valid Region