Displaying 1 result from an estimated 1 matches for "loop_i_test".
2012 Dec 03
2
[LLVMdev] Which transform passes to apply?
...%Matrix* %dst, i32 0, i32 0
%8 = load i8** %7
%dst_data = bitcast i8* %8 to double*
%9 = getelementptr double* %dst_data, i32 %i
store double %accumulate, double* %9
br label %loop_i_end
loop_i_end: ; preds = %loop_i
%increment_i = add i32 %i, 1
%loop_i_test = icmp eq i32 %increment_i, %len
br i1 %loop_i_test, label %loop_i_exit, label %loop_i
loop_i_exit: ; preds = %loop_i_end
ret void
}
My question is which optimization pass(es) are needed to simplify the
instructions in bold. I've tried running the same...