brintos

brintos / llvm-project-archived public Read only

0
0
Text · 729 B · 79244c1 Raw
22 lines · plain
1; RUN: opt < %s 2>&1 -disable-output \2; RUN: 	   -passes='simple-loop-unswitch<nontrivial>' \3; RUN:     -print-after=simple-loop-unswitch \4; RUN:	   | FileCheck %s5 6; CHECK: *** IR Dump After SimpleLoopUnswitchPass on loop %for.cond in function loop ***7; CHECK: *** IR Dump After SimpleLoopUnswitchPass on loop %for.cond.us in function loop ***8 9define void @loop(i1 %w)  {10entry:11  br label %for.cond12; Loop:13for.cond:                                         ; preds = %for.inc, %entry14  br i1 %w, label %for.inc, label %if.then15 16if.then:                                          ; preds = %for.cond17  br label %for.inc18 19for.inc:                                          ; preds = %if.then, %for.cond20  br label %for.cond21}22