Displaying 2 results from an estimated 2 matches for "loopbody2".
Did you mean:
loopbody
2011 Jun 16
1
[LLVMdev] Confusion about excessive reads in the PowerPC assembly generated by LLVM
...am talking about, I contrived a test case with 8
live variables between basic blocks:
#include <stdio.h>
main()
{ int s,t,u,v,w,x,y,z;
for (z=0; z<200; z++)
s += ((((t*z+u)*z+v)*z+w)*z+x)*z+y; // loopbody1
for (z=10; z<20; z++)
s += ((((t*z-u)*z-v)*z-w)*z-x)*z-y; // loopbody2
}
Now, the assembly that is produced has 21 loads, which indicates no effort
to reuse any data.
In particular, the two basic blocks that correspond to loopbody1 and to
loopbody2 are identical (except that the adds become subfs).
Being identical, both of these generated basic blocks have 8 loads in...
2009 Aug 30
0
[LLVMdev] Strange error in generated assembly
I've spent the better part of a day trying to figure out why my generated
assembly code isn't correct. Here is the IR code for my loop:
loopbody2: ; preds = %test1
%i14 = load i32* %i5 ; <i32> [#uses=1]
%get15 = call %tart.core.String*
@"tart.core.Array[tart.core.String]..index.get(int)->tart.core.String"(%"tart.core.Array[tart.core.String]"*
%...