public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* ra-build.c
@ 2008-02-28 19:04 aparna
  2008-02-29  5:16 ` ra-build.c Ian Lance Taylor
  0 siblings, 1 reply; 3+ messages in thread
From: aparna @ 2008-02-28 19:04 UTC (permalink / raw)
  To: gcc-help

hi,

pls can any one tell me, why this "for" loop is used

"for (insn = PREV_INSN (insn); insn && !INSN_P (insn);insn = PREV_INSN
(insn));"


IN
function:  live_in()
file Name: ra-build.c

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

* Re: ra-build.c
  2008-02-28 19:04 ra-build.c aparna
@ 2008-02-29  5:16 ` Ian Lance Taylor
       [not found]   ` <2848.10.11.101.94.1204255212.squirrel@www.cse.iitb.ac.in>
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2008-02-29  5:16 UTC (permalink / raw)
  To: aparna; +Cc: gcc-help

aparna@cse.iitb.ac.in writes:

> pls can any one tell me, why this "for" loop is used
> 
> "for (insn = PREV_INSN (insn); insn && !INSN_P (insn);insn = PREV_INSN
> (insn));"
> 
> 
> IN
> function:  live_in()
> file Name: ra-build.c

It's walking the insn chain backward to find the next real insn.

ra-build.c was removed back in 2005, before the gcc 4.0 release, by
the way.

Ian

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

* interference gragh
       [not found]     ` <m3mypknu1n.fsf@localhost.localdomain>
@ 2008-03-02 19:39       ` aparna
  0 siblings, 0 replies; 3+ messages in thread
From: aparna @ 2008-03-02 19:39 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-help

 ra-conflict.c file is not there in gcc new version. and global.c is
talking somthing about assignment of hard registers. but, assignment of
hard registers
comes after build interference graph. i am confused.
 is both building interference graph and register allocation done in
global.c?


> In gcc 3.4, the interference graph is built in global.c.  In current
> mainline gcc, it is built in ra-conflict.c.
>
> Ian
>

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

end of thread, other threads:[~2008-03-02 19:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-28 19:04 ra-build.c aparna
2008-02-29  5:16 ` ra-build.c Ian Lance Taylor
     [not found]   ` <2848.10.11.101.94.1204255212.squirrel@www.cse.iitb.ac.in>
     [not found]     ` <m3mypknu1n.fsf@localhost.localdomain>
2008-03-02 19:39       ` interference gragh aparna

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).