public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Where can I put the optimization of got for arm back end at?
@ 2010-03-28 21:00 Carrot Wei
  2010-04-01 18:11 ` Andrew Haley
  0 siblings, 1 reply; 5+ messages in thread
From: Carrot Wei @ 2010-03-28 21:00 UTC (permalink / raw)
  To: gcc, Richard Earnshaw, Paul Brook, nickc

Hi

The detailed description of the optimization is at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43129. This is an ARM
specific optimization.

This optimization uses one less register (the register hold the GOT
base), to get this beneficial the ideal place for it should be before
register allocation.

Usually expand pass generates instructions to load global variable's
address from GOT entry for each access of the global variable. Later
cse/gcse passes can remove many of them. In order to precisely model
the cost, this optimization should be put after some cse/gcse passes.

So what is the best place for this optimization? Is there any existed
pass can be enhanced with this optimization? Or should I add a new
pass?

thanks
Guozhi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-04-06 13:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-28 21:00 Where can I put the optimization of got for arm back end at? Carrot Wei
2010-04-01 18:11 ` Andrew Haley
2010-04-01 20:31   ` Steven Bosscher
2010-04-02  4:06     ` Carrot Wei
     [not found]       ` <l2z5885251a1004050624h1237ec10z2a0bf34b7ba91d2c@mail.gmail.com>
2010-04-06 13:38         ` Carrot Wei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).