File: 2012-03-20-indirectbr.ll

package info (click to toggle)
llvm-toolchain-9 1%3A9.0.1-16.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 882,388 kB
  • sloc: cpp: 4,167,636; ansic: 714,256; asm: 457,610; python: 155,927; objc: 65,094; sh: 42,856; lisp: 26,908; perl: 7,786; pascal: 7,722; makefile: 6,881; ml: 5,581; awk: 3,648; cs: 2,027; xml: 888; javascript: 381; ruby: 156
file content (41 lines) | stat: -rw-r--r-- 1,876 bytes parent folder | download | duplicates (26)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
; RUN: opt < %s -loop-simplify -S | FileCheck %s

; Make sure the preheader exists.
; CHECK: sw.bb103:
; CHECK: indirectbr {{.*}}label %while.cond112
; CHECK: while.cond112:
; But the tail is not split.
; CHECK: for.body:
; CHECK: indirectbr {{.*}}label %while.cond112
define fastcc void @build_regex_nfa() nounwind uwtable ssp {
entry:
  indirectbr i8* blockaddress(@build_regex_nfa, %while.cond), [label %while.cond]

while.cond:                                       ; preds = %if.then439, %entry
  indirectbr i8* blockaddress(@build_regex_nfa, %sw.bb103), [label %do.body785, label %sw.bb103]

sw.bb103:                                         ; preds = %while.body
  indirectbr i8* blockaddress(@build_regex_nfa, %while.cond112), [label %while.cond112]

while.cond112:                                    ; preds = %for.body, %for.cond.preheader, %sw.bb103
  %pc.0 = phi i8 [ -1, %sw.bb103 ], [ 0, %for.body ], [ %pc.0, %for.cond.preheader ]
  indirectbr i8* blockaddress(@build_regex_nfa, %Lsetdone), [label %sw.bb118, label %Lsetdone]

sw.bb118:                                         ; preds = %while.cond112
  indirectbr i8* blockaddress(@build_regex_nfa, %for.cond.preheader), [label %Lerror.loopexit, label %for.cond.preheader]

for.cond.preheader:                               ; preds = %sw.bb118
  indirectbr i8* blockaddress(@build_regex_nfa, %for.body), [label %while.cond112, label %for.body]

for.body:                                         ; preds = %for.body, %for.cond.preheader
  indirectbr i8* blockaddress(@build_regex_nfa, %for.body), [label %while.cond112, label %for.body]

Lsetdone:                                         ; preds = %while.cond112
  unreachable

do.body785:                                       ; preds = %while.cond, %while.body
  ret void

Lerror.loopexit:                                  ; preds = %sw.bb118
  unreachable
}