llvm-project
20 строк · 371.0 Байт
1; RUN: opt %loadNPMPolly '-passes=print<polly-detect>' -disable-output < %s 2>&1 | FileCheck %s
2
3; CHECK-NOT: Valid
4
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:
10br label %d
11
12d:
13switch i8 0, label %e [
14i8 71, label %d
15i8 56, label %d
16]
17
18e:
19ret void
20}
21
22