• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -simplifycfg -S | not grep br
2
3declare void @bar(i32)
4
5define void @test(i1 %P, i32* %Q) {
6        br i1 %P, label %T, label %F
7T:              ; preds = %0
8        store i32 1, i32* %Q
9        %A = load i32, i32* %Q               ; <i32> [#uses=1]
10        call void @bar( i32 %A )
11        ret void
12F:              ; preds = %0
13        store i32 1, i32* %Q
14        %B = load i32, i32* %Q               ; <i32> [#uses=1]
15        call void @bar( i32 %B )
16        ret void
17}
18
19