llvm-project
31 строка · 963.0 Байт
1; RUN: opt < %s -passes=print-cfg-sccs -disable-output 2>&1 | FileCheck %s
2
3; CHECK: SCC #1: %UnifiedExitNode
4; CHECK: SCC #2: %loopexit.5, %loopexit.6, %loopentry.7, %loopentry.6, %loopentry.5, %endif.2
5; CHECK: SCC #3: %entry
6
7define void @getAndMoveToFrontDecode() {
8entry:
9br label %endif.2
10
11endif.2: ; preds = %loopexit.5, %entry
12br i1 false, label %loopentry.5, label %UnifiedExitNode
13
14loopentry.5: ; preds = %loopexit.6, %endif.2
15br i1 false, label %loopentry.6, label %UnifiedExitNode
16
17loopentry.6: ; preds = %loopentry.7, %loopentry.5
18br i1 false, label %loopentry.7, label %loopexit.6
19
20loopentry.7: ; preds = %loopentry.7, %loopentry.6
21br i1 false, label %loopentry.7, label %loopentry.6
22
23loopexit.6: ; preds = %loopentry.6
24br i1 false, label %loopentry.5, label %loopexit.5
25
26loopexit.5: ; preds = %loopexit.6
27br i1 false, label %endif.2, label %UnifiedExitNode
28
29UnifiedExitNode: ; preds = %loopexit.5, %loopentry.5, %endif.2
30ret void
31}
32