Mercurial > hg > CbC > CbC_llvm
annotate polly/test/ScopDetect/switch-in-loop-patch.ll @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | c4bab56944e8 |
children |
rev | line source |
---|---|
236 | 1 ; RUN: opt %loadPolly -polly-print-detect -disable-output < %s | FileCheck %s |
150 | 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 | |
8 define void @f() { | |
9 b: | |
10 br label %d | |
11 | |
12 d: | |
13 switch i8 0, label %e [ | |
14 i8 71, label %d | |
15 i8 56, label %d | |
16 ] | |
17 | |
18 e: | |
19 ret void | |
20 } | |
21 |