• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -simplifycfg -S | not grep call
2
3declare void @bar()
4
5define void @test(i32 %X, i32 %Y) {
6entry:
7        %tmp.2 = icmp slt i32 %X, %Y            ; <i1> [#uses=2]
8        br i1 %tmp.2, label %shortcirc_next, label %UnifiedReturnBlock
9shortcirc_next:         ; preds = %entry
10        br i1 %tmp.2, label %UnifiedReturnBlock, label %then
11then:           ; preds = %shortcirc_next
12        call void @bar( )
13        ret void
14UnifiedReturnBlock:             ; preds = %shortcirc_next, %entry
15        ret void
16}
17
18