mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 03:46:49 +00:00

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.
25 lines
441 B
LLVM
25 lines
441 B
LLVM
; RUN: opt %loadNPMPolly '-passes=print<polly-detect>' -pass-remarks-missed="polly-detect" -disable-output < %s 2>&1| FileCheck %s
|
|
|
|
; CHECK: remark: <unknown>:0:0: Scop contains function entry (not yet supported).
|
|
|
|
define void @hoge(ptr %arg) {
|
|
bb1:
|
|
br i1 false, label %bb2, label %bb3
|
|
|
|
bb2:
|
|
br i1 false, label %bb4, label %bb5
|
|
|
|
bb4:
|
|
br i1 false, label %bb3, label %bb5
|
|
|
|
bb5:
|
|
br label %bb6
|
|
|
|
bb6:
|
|
br label %bb4
|
|
|
|
bb3:
|
|
ret void
|
|
}
|
|
|