Home | History | Annotate | Download | only in SimplifyCFG
      1 ; RUN: opt < %s -simplifycfg -S | not grep br
      2 
      3 declare void @bar(i32)
      4 
      5 define void @test(i1 %P, i32* %Q) {
      6         br i1 %P, label %T, label %F
      7 T:              ; 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
     12 F:              ; 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