
Even as the NPM has been in use by Polly for a while now, the majority of the tests continue using the LPM passes. This patch ports the tests to use the NPM passes (for example, by replacing a flag such as -polly-detect with -passes=polly-detect following the NPM syntax for specifying passes) with some exceptions for some missing features in the new passes. Relanding #90632.
22 lines
371 B
LLVM
22 lines
371 B
LLVM
; RUN: opt %loadNPMPolly '-passes=print<polly-detect>' -disable-output < %s 2>&1 | 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
|
|
}
|
|
|