Latency of rtl instruction..

Vladimir Makarov vmakarov@redhat.com
Wed Nov 20 13:52:00 GMT 2002


Ritu Sabharwal wrote:
> 
> Hi,
>    We need to find out the latency of each rtl instruction, how
> this is calculated in gcc. Please tell us that function where this
> is done.
> 

  It depends what model of pipeline description you use.  If you use the
old model description then it is function result_ready_cost.  For the
DFA pipeline description it is insn_default_latency.  The functions are
defined in insn-attr.h.  There is also function insn_cost independent
from the used description model.  It is defined in sched-int.h.  You
should set up to NULL the last two parameters of the function to get the
insn latency time.

Vlad



More information about the Gcc mailing list