22 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<detect>' -polly-print-detect -disable-output < %s 2>&1 | FileCheck %s2 3; CHECK-NOT: Valid4 5; Verify that we do not detect loops where the loop latch is a switch statement.6; Such loops are not yet supported by Polly.7 8define void @f() {9b:10 br label %d11 12d:13 switch i8 0, label %e [14 i8 71, label %d15 i8 56, label %d16 ]17 18e:19 ret void20}21 22