• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -disable-output -debug-pass-manager \
2; RUN:     -passes='no-op-loop' %s 2>&1 \
3; RUN:     | FileCheck %s
4
5;            @f()
6;           /    \
7;       loop.0   loop.1
8;      /      \        \
9; loop.0.0  loop.0.1  loop.1.0
10;
11; CHECK: Running pass: NoOpLoopPass on loop.1.0
12; CHECK: Running pass: NoOpLoopPass on loop.1
13; CHECK: Running pass: NoOpLoopPass on loop.0.0
14; CHECK: Running pass: NoOpLoopPass on loop.0.1
15; CHECK: Running pass: NoOpLoopPass on loop.0
16define void @f() {
17entry:
18  br label %loop.0
19loop.0:
20  br i1 undef, label %loop.0.0, label %loop.1
21loop.0.0:
22  br i1 undef, label %loop.0.0, label %loop.0.1
23loop.0.1:
24  br i1 undef, label %loop.0.1, label %loop.0
25loop.1:
26  br i1 undef, label %loop.1, label %loop.1.bb1
27loop.1.bb1:
28  br i1 undef, label %loop.1, label %loop.1.bb2
29loop.1.bb2:
30  br i1 undef, label %end, label %loop.1.0
31loop.1.0:
32  br i1 undef, label %loop.1.0, label %loop.1
33end:
34  ret void
35}
36