brintos

brintos / llvm-project-archived public Read only

0
0
Text · 447 B · 5bc7d4f Raw
17 lines · plain
1; RUN: opt < %s -passes=licm | lli -jit-kind=mcjit -force-interpreter2 3define i32 @main() {4entry:5	br label %Loop6Loop:		; preds = %LoopCont, %entry7	br i1 true, label %LoopCont, label %Out8LoopCont:		; preds = %Loop9	%X = add i32 1, 0		; <i32> [#uses=1]10	br i1 true, label %Out, label %Loop11Out:		; preds = %LoopCont, %Loop12	%V = phi i32 [ 2, %Loop ], [ %X, %LoopCont ]		; <i32> [#uses=1]13	%V2 = sub i32 %V, 1		; <i32> [#uses=1]14	ret i32 %V215}16 17