Home | History | Annotate | Download | only in LICM
      1 ; RUN: opt < %s -licm | llvm-dis
      2 
      3 define void @testfunc(i32 %i) {
      4 ; <label>:0
      5 	br label %Loop
      6 Loop:		; preds = %Loop, %0
      7 	%j = phi i32 [ 0, %0 ], [ %Next, %Loop ]		; <i32> [#uses=1]
      8 	%i2 = mul i32 %i, 17		; <i32> [#uses=1]
      9 	%Next = add i32 %j, %i2		; <i32> [#uses=2]
     10 	%cond = icmp eq i32 %Next, 0		; <i1> [#uses=1]
     11 	br i1 %cond, label %Out, label %Loop
     12 Out:		; preds = %Loop
     13 	ret void
     14 }
     15 
     16