Hi, all:
I am just get in trouble in ipa inliner. As you know, there is a
variable *loopnest* in Summary_Callsite which indicates the loopnest of the
callsite. loopnest is obtained on up-traversel the whirl
tree(ipl_summary_template.h). However, since the IPA is before wopt phase,
the whirl could not generate any OPR_DO_LOOP,OPR_WHILE_DO, so, anytime I
get loopnest always be 0. Does anyone previously meet the problem? Thanks
for your correction and advice.
Thanks for your attentions!
Yours
Gang
int x;
int y=5;
static int foo(int x){
int i;
int sum;
for(i=x;i<x+2;i++){
sum+=i;
}
return sum;
}
int main(int argc, char* argv[]){
int j;
int i;
if (y>=1){
x=5;
i=0;
j=0;
while(i<10){
while(j<2){
x=foo(x);
j++;
}
i++;
}
}
}
int x;
int y=5;
static int foo(int x){
int i;
int sum;
for(i=x;i<x+2;i++){
sum+=i;
}
return sum;
}
int main(int argc, char* argv[]){
int j;
int i;
if (y>=1){
x=5;
for(i=0;i<10;i++)
for(j=0;j<2;j++){
x=foo(x);
}
}
}
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel