[Polly][NewPM] Reenable ScopPassManager unittest
[polly-mirror.git] / test / ScopDetect / switch-in-loop-patch.ll
blob6694446b72ed1dfd5197f5ae3c2b91fe02122ce9
1 ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s
3 ; CHECK-NOT: Valid
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.
8 define void @f() {
9 b:
10   br label %d
13   switch i8 0, label %e [
14     i8 71, label %d
15     i8 56, label %d
16   ]
19  ret void