Fix Polly
[polly-mirror.git] / test / ScopDetect / expand-region-correctly.ll
blobec1e7a7dfd2b446f58a554d74a4de19beedbcfb2
1 ; RUN: opt %loadPolly -polly-detect \
2 ; RUN:     -analyze < %s | FileCheck %s
4 ; CHECK: Valid Region for Scop: if.end.1631 => for.cond.1647.outer
6 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
8 define void @qtm_decompress() {
9 entry:
10   br label %while.cond.outer.outer
12 while.cond.outer.outer:                           ; preds = %entry
13   br label %if.end.1631
15 if.end.1631:                                      ; preds = %do.end.1721, %while.cond.outer.outer
16   br i1 false, label %for.cond.1647.preheader, label %if.then.1635
18 if.then.1635:                                     ; preds = %if.end.1631
19   br label %for.cond.1647.preheader
21 for.cond.1647.preheader:                          ; preds = %if.then.1635, %if.end.1631
22   br label %for.cond.1647.outer
24 for.cond.1647.outer:                              ; preds = %do.end.1685, %for.cond.1647.preheader
25   %bits_needed.5.ph = phi i8 [ 8, %for.cond.1647.preheader ], [ 0, %do.end.1685 ]
26   br label %for.cond.1647
28 for.cond.1647:                                    ; preds = %do.cond.1718, %for.cond.1647.outer
29   br i1 undef, label %do.cond.1718, label %if.then.1659
31 if.then.1659:                                     ; preds = %for.cond.1647
32   br i1 false, label %do.end.1685, label %if.then.1662
34 if.then.1662:                                     ; preds = %if.then.1659
35   unreachable
37 do.end.1685:                                      ; preds = %if.then.1659
38   br label %for.cond.1647.outer
40 do.cond.1718:                                     ; preds = %for.cond.1647
41   br i1 false, label %do.end.1721, label %for.cond.1647
43 do.end.1721:                                      ; preds = %do.cond.1718
44   br label %if.end.1631