brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · d2a4fbe Raw
46 lines · plain
1; RUN: opt < %s -passes='loop-mssa(simple-loop-unswitch),instcombine' -verify-memoryssa -disable-output2 3@str3 = external constant [3 x i8]		; <ptr> [#uses=1]4 5define i32 @stringSearch_Clib(i32 %count) {6entry:7	%ttmp25 = icmp sgt i32 %count, 0		; <i1> [#uses=1]8	br i1 %ttmp25, label %bb36.preheader, label %bb449 10bb36.preheader:		; preds = %entry11	%ttmp33 = icmp slt i32 0, 250		; <i1> [#uses=1]12	br label %bb36.outer13 14bb36.outer:		; preds = %bb41, %bb36.preheader15	br i1 %ttmp33, label %bb.nph, label %bb4116 17bb.nph:		; preds = %bb36.outer18	%ttmp8 = icmp eq ptr null, null		; <i1> [#uses=1]19	%ttmp6 = icmp eq ptr null, null		; <i1> [#uses=1]20	%tmp31 = call i32 @strcspn( ptr null, ptr @str3 )		; <i32> [#uses=1]21	br i1 %ttmp8, label %cond_next, label %cond_true22 23cond_true:		; preds = %bb.nph24	ret i32 025 26cond_next:		; preds = %bb.nph27	br i1 %ttmp6, label %cond_next28, label %cond_true2028 29cond_true20:		; preds = %cond_next30	ret i32 031 32cond_next28:		; preds = %cond_next33	%tmp33 = add i32 %tmp31, 0		; <i32> [#uses=1]34	br label %bb4135 36bb41:		; preds = %cond_next28, %bb36.outer37	%c.2.lcssa = phi i32 [ 0, %bb36.outer ], [ %tmp33, %cond_next28 ]		; <i32> [#uses=1]38	br i1 false, label %bb36.outer, label %bb4439 40bb44:		; preds = %bb41, %entry41	%c.01.1 = phi i32 [ 0, %entry ], [ %c.2.lcssa, %bb41 ]		; <i32> [#uses=1]42	ret i32 %c.01.143}44 45declare i32 @strcspn(ptr, ptr)46