Displaying 1 result from an estimated 1 matches for "arrayadd1".
Did you mean:
arrayaddr
2014 Feb 19
2
[LLVMdev] better code for IV
...me advice on how to make LLVM generate better code for IV in a simple loop case. There is IR sample below, I know of one way to do it, and I'm looking for advice on another way.
When compiling a simple C loop (c[i]=a[i]+b[i], a, b, c are float*), the IR starts as follows:
define void @ArrayAdd1(float* nocapture %a, float* nocapture %b, float* nocapture %c, i64 %iNumElements) {
Entry:
br label %L_pre_head
L_pre_head: ; preds = %Entry
br label %L_entry
L_entry: ; pred...