File: indirectbr.ll

package info (click to toggle)
llvm-2.7 2.7-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 59,992 kB
  • ctags: 49,499
  • sloc: cpp: 373,792; ansic: 16,885; sh: 12,614; asm: 6,809; ada: 3,083; ml: 2,942; python: 2,671; perl: 2,404; makefile: 1,691; pascal: 1,235; exp: 399; objc: 291; lisp: 184; csh: 117; xml: 38; f90: 36
file content (22 lines) | stat: -rw-r--r-- 721 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; RUN: opt < %s -indvars -S -disable-output
; PR5758

define zeroext i1 @foo() nounwind {
entry:
  indirectbr i8* undef, [label %"202", label %"133"]

"132":                                            ; preds = %"133"
  %0 = add i32 %1, 1                              ; <i32> [#uses=1]
  br label %"133"

"133":                                            ; preds = %"132", %entry
  %1 = phi i32 [ %0, %"132" ], [ 0, %entry ]      ; <i32> [#uses=2]
  %2 = icmp eq i32 %1, 4                          ; <i1> [#uses=1]
  br i1 %2, label %"134", label %"132"

"134":                                            ; preds = %"133"
  ret i1 true

"202":                                            ; preds = %entry
  ret i1 false
}