The `opt -analyze` option only works with the legacy pass manager and might be removed in the future, as explained in llvm.org/PR53733. This patch introduced -polly-print-* passes that print what the pass would print with the `-analyze` option and replaces all uses of `-analyze` in the regression tests. There are two exceptions: `CodeGen\single_loop_param_less_equal.ll` and `CodeGen\loop_with_condition_nested.ll` use `-analyze on the `-loops` pass which is not part of Polly. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D120782
22 lines
353 B
LLVM
22 lines
353 B
LLVM
; RUN: opt %loadPolly -polly-print-detect -disable-output < %s | FileCheck %s
|
|
|
|
; CHECK-NOT: Valid
|
|
|
|
; Verify that we do not detect loops where the loop latch is a switch statement.
|
|
; Such loops are not yet supported by Polly.
|
|
|
|
define void @f() {
|
|
b:
|
|
br label %d
|
|
|
|
d:
|
|
switch i8 0, label %e [
|
|
i8 71, label %d
|
|
i8 56, label %d
|
|
]
|
|
|
|
e:
|
|
ret void
|
|
}
|
|
|