PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

hoisted expression

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
THX 1138



Joined: 30 Jun 2011
Posts: 102

PostPosted: Thu Oct 04, 2012 12:24 pm    Post subject: hoisted expression Reply with quote

When I compiled some code with pgcc I got the following expression several times, but just one should be enough to show it

85, -O4 optimization: guarded floating point expression hoisted

Now the first line, the for statement, is line 85. It has an expression hoisted. I know what it is doing "moving some constant expression out of the for loop". That is constant in order to optimize it must be placed out of the loop.

I just do not see what part of it is hoisted).

for(Rint=0 ; Rint < (*(*WPP).Env).NtargetR ; Rint=Rint+1){
RRAYbp[Rint] = (*(*WPP).Env).Target_Range[Rint];
if( RRAYap > (*WPP).RNGMAXi ){
printf("PRC_BRN2: source beyond max range\n");
exit(1);
};

Please explain.

Any help appreciated.

Newport_j
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Thu Oct 04, 2012 1:10 pm    Post subject: Reply with quote

Sorry Newport_j, I can't tell for what you posted. Can you post a reproducing example?

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group