Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers > Predict registe...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 7 Topic 2395 of 2474
Post > Topic >>

Predict register usage

by "Inderaj Bains" <inderaj@[EMAIL PROTECTED] > Apr 26, 2008 at 10:01 AM

Function call has overheads including calling convention spill/reload
or maybe you do global register allocation. Finally the code is
executed at the same place, right? call or no call there is no magic,
you need the resources. Though inlining reduces call overhead,
subsequent code motion can increase register usage. Maybe by not
inlining you are limiting the ability of downstream optimizations to
mess up and inlining is not the issue. So what you can do here might
be driven less by the particular goodness of a particular approach and
more by what your downstream optimizations do, including how good
allocation is. For a cheap solution, you could try putting code motion
barriers around your inlined function when you see high register
pressure.

For a general solution, to me it seems that my ability to consider all
inter-optimization tradeoffs, architectural tradeoffs, fiddle
endlessly with switches to produce good results is limited. Using
machine learning or autotuners and letting machine do a good part of
this work might be the long term solution in coming time.

Inderaj
 




 7 Posts in Topic:
Predict register usage
Tim Frink <plfriko@[EM  2008-04-25 13:56:25 
Re: Predict register usage
Chris F Clark <cfc@[EM  2008-04-25 23:36:26 
Re: Predict register usage
andreybokhanko@[EMAIL PRO  2008-05-02 00:35:46 
Predict register usage
"Inderaj Bains"  2008-04-26 10:01:47 
Re: Predict register usage
Sid Touati <SidTouati@  2008-04-28 12:11:26 
Re: Predict register usage
andreybokhanko@[EMAIL PRO  2008-05-02 00:33:54 
Re: Predict register usage
=?ISO-8859-1?Q?Bj=F6rn_Fr  2008-05-09 15:33:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 1:21:51 CDT 2008.