This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] haifa-sched: SCHED_GROUP_P ignored for queued insn


Hi,

> It could be used for solving the problem.  But it results in inaccuarate 
> simulated clock and as consequence potentially worse code.  The insn in 
> the group should be issued on right time.  So the problem should solved 
> by advacning clock not changing cost. 

Actually that is exactly what I was trying to accomplish with my patch.
If insn is a SCHED_GROUP_P insn, the clock is advanced by cost wherein
cost is the number of cycles the insn otherwise would be stalled.

Bye,

-Andreas-

> Vlad
> 
> >Bye,
> >
> >-Andreas-
> >
> >2005-02-08  Andreas Krebbel  <krebbel1@de.ibm.com>
> >
> >	* gcc/haifa-sched.c (schedule_block): Make queued sched group 
> >	insns return to ready list in the next turn.
> >
> >
> >Index: gcc/haifa-sched.c
> >===================================================================
> >RCS file: /cvs/gcc/gcc/gcc/haifa-sched.c,v
> >retrieving revision 1.251
> >diff -p -c -r1.251 haifa-sched.c
> >*** gcc/haifa-sched.c	24 Nov 2004 11:32:22 -0000	1.251
> >--- gcc/haifa-sched.c	8 Feb 2005 07:16:10 -0000
> >*************** schedule_block (int b, int rgn_n_insns)
> >*** 2052,2057 ****
> >--- 2052,2063 ----
> > 	  if (cost >= 1)
> > 	    {
> > 	      queue_insn (insn, cost);
> >+ 	      if (SCHED_GROUP_P (insn))
> >+ 		{
> >+ 		  advance = cost;
> >+ 		  break;
> >+ 		}
> >+ 
> > 	      continue;
> > 	    }
> > 
> > 
> >
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]