Remove irrelevant references to legacy git repositories from
[polly-mirror.git] / test / ScopDetect / error-block-unreachable.ll
blob311d216dee74bf77b8a40df7029f41a7b21adbcb
1 ; RUN: opt %loadPolly -polly-detect -analyze < %s
3 ; Verify that the scop detection does not crash on inputs with unreachable
4 ; blocks. Earlier we crashed when detecting error blocks.
6 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
7 target triple = "x86_64-unknown-linux-gnu"
9 ; Function Attrs: nounwind uwtable
10 define void @foo() {
11 entry:
12   br label %while.cond
14 while.cond:                                       ; preds = %for.end, %entry
15   br i1 false, label %for.end, label %while.end8
17 while.cond1:                                      ; preds = %while.cond4
18   br i1 undef, label %while.body3, label %for.inc
20 while.body3:                                      ; preds = %while.cond1
21   br label %while.cond4
23 while.cond4:                                      ; preds = %while.cond4, %while.body3
24   br i1 undef, label %while.cond4, label %while.cond1
26 for.inc:                                          ; preds = %while.cond1
27   %conv = zext i16 undef to i32
28   br label %for.end
30 for.end:                                          ; preds = %for.inc, %while.cond
31   %conv.sink = phi i32 [ %conv, %for.inc ], [ 0, %while.cond ]
32   br label %while.cond
34 while.end8:                                       ; preds = %while.cond
35   ret void