This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Pipeline hazards and delay slots
- From: "Pranav Bhandarkar" <pranav dot bhandarkar at gmail dot com>
- To: "Mohamed Shafi" <shafitvm at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 5 May 2008 12:23:44 +0530
- Subject: Re: Pipeline hazards and delay slots
- References: <ba0bd44d0805030446w6752dcafld6d102263957dbcc@mail.gmail.com>
Hi Mohammed,
> But how can i handle instances like this? Should i be doing insertion
> of nops in reorg pass?
FWIW, I had worked on a port for VLIW processor about three years back
and IIRC we had used the reorg pass for inserting the nops. I think
if you look at the scheduler dumps you will notice that the scheduler
would have, in all likelihood, accounted for the delay of 1 cycle
between the "lw" and the "add" instructions. Only that you will have
to put the "nop" yourself between these two instructions.
cheers!
Pranav