Home | History | Annotate | Download | only in SimplifyCFG
      1 ; Basic block #2 should not be merged into BB #3!
      2 ;
      3 ; RUN: opt < %s -simplifycfg -S | FileCheck %s
      4 
      5 declare void @foo()
      6 
      7 define void @cprop_test12(i32* %data) {
      8 bb0:
      9 	%reg108 = load i32, i32* %data		; <i32> [#uses=2]
     10 	%cond218 = icmp ne i32 %reg108, 5		; <i1> [#uses=1]
     11 	br i1 %cond218, label %bb3, label %bb2
     12 bb2:		; preds = %bb0
     13 	call void @foo( )
     14 ; CHECK: br label %bb3
     15 	br label %bb3
     16 bb3:		; preds = %bb2, %bb0
     17 	%reg117 = phi i32 [ 110, %bb2 ], [ %reg108, %bb0 ]		; <i32> [#uses=1]
     18 	store i32 %reg117, i32* %data
     19 	ret void
     20 }
     21 
     22