|
1 | 1 | ; RUN: opt < %s -disable-output -passes='default<O2>' -time-passes 2>&1 | FileCheck %s --check-prefix=TIME
|
2 | 2 | ;
|
3 | 3 | ; For new pass manager, check that -time-passes-per-run emit one report for each pass run.
|
4 |
| -; RUN: opt < %s -disable-output -passes='instcombine,instcombine,loop-mssa(licm)' -time-passes-per-run 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-PER-RUN |
| 4 | +; RUN: opt < %s -disable-output -passes='coro-cleanup,function(instcombine,instcombine,loop-mssa(licm))' -time-passes-per-run 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-PER-RUN --check-prefix=TIME-PER-RUN-CORO |
5 | 5 | ; RUN: opt < %s -disable-output -passes='instcombine,loop-mssa(licm),instcombine,loop-mssa(licm)' -time-passes-per-run 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-PER-RUN -check-prefix=TIME-DOUBLE-LICM
|
6 | 6 | ;
|
7 | 7 | ; For new pass manager, check that -time-passes emit one report for each pass.
|
8 |
| -; RUN: opt < %s -disable-output -passes='instcombine,instcombine,loop-mssa(licm)' -time-passes 2>&1 | FileCheck %s --check-prefixes=TIME,TIME-PER-PASS |
| 8 | +; RUN: opt < %s -disable-output -passes='coro-cleanup,function(instcombine,instcombine,loop-mssa(licm))' -time-passes 2>&1 | FileCheck %s --check-prefixes=TIME,TIME-PER-PASS,TIME-PER-PASS-CORO |
9 | 9 | ; RUN: opt < %s -disable-output -passes='instcombine,loop-mssa(licm),instcombine,loop-mssa(licm)' -time-passes 2>&1 | FileCheck %s --check-prefixes=TIME,TIME-PER-PASS
|
10 | 10 | ;
|
11 | 11 | ; The following 2 test runs verify -info-output-file interaction (default goes to stderr, '-' goes to stdout).
|
|
30 | 30 | ; TIME-PER-RUN-DAG: LCSSAPass
|
31 | 31 | ; TIME-PER-RUN-DAG: LoopSimplifyPass
|
32 | 32 | ; TIME-PER-RUN-DAG: VerifierPass
|
| 33 | +; TIME-PER-RUN-CORO-DAG: SimplifyCFGPass #1 |
| 34 | +; TIME-PER-RUN-CORO-DAG: CoroCleanupPass #1 |
33 | 35 | ; TIME-PER-PASS-DAG: InstCombinePass
|
34 | 36 | ; TIME-PER-PASS-DAG: LICMPass
|
35 | 37 | ; TIME-PER-PASS-DAG: LCSSAPass
|
36 | 38 | ; TIME-PER-PASS-DAG: LoopSimplifyPass
|
37 | 39 | ; TIME-PER-PASS-DAG: VerifierPass
|
| 40 | +; TIME-PER-PASS-CORO-DAG: SimplifyCFGPass |
| 41 | +; TIME-PER-PASS-CORO-DAG: CoroCleanupPass |
38 | 42 | ; TIME-PER-PASS-NOT: InstCombinePass #
|
39 | 43 | ; TIME-PER-PASS-NOT: LICMPass #
|
40 | 44 | ; TIME-PER-PASS-NOT: LCSSAPass #
|
|
78 | 82 | ret void
|
79 | 83 |
|
80 | 84 | }
|
| 85 | + |
| 86 | +define void @baz_coro() { |
| 87 | + %unused = call ptr @llvm.coro.begin(token none, ptr null) |
| 88 | + ret void |
| 89 | +} |
| 90 | + |
| 91 | +declare ptr @llvm.coro.begin(token, ptr) |
0 commit comments