brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 85f248d Raw
37 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<detect>' -polly-print-detect -disable-output < %s2 3; Verify that the scop detection does not crash on inputs with unreachable4; blocks. Earlier we crashed when detecting error blocks.5 6target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"7target triple = "x86_64-unknown-linux-gnu"8 9; Function Attrs: nounwind uwtable10define void @foo() {11entry:12  br label %while.cond13 14while.cond:                                       ; preds = %for.end, %entry15  br i1 false, label %for.end, label %while.end816 17while.cond1:                                      ; preds = %while.cond418  br i1 undef, label %while.body3, label %for.inc19 20while.body3:                                      ; preds = %while.cond121  br label %while.cond422 23while.cond4:                                      ; preds = %while.cond4, %while.body324  br i1 undef, label %while.cond4, label %while.cond125 26for.inc:                                          ; preds = %while.cond127  %conv = zext i16 undef to i3228  br label %for.end29 30for.end:                                          ; preds = %for.inc, %while.cond31  %conv.sink = phi i32 [ %conv, %for.inc ], [ 0, %while.cond ]32  br label %while.cond33 34while.end8:                                       ; preds = %while.cond35  ret void36}37