Side-effect latency in DFA scheduler

Nathan Sidwell nathan@codesourcery.com
Tue Apr 26 10:59:00 GMT 2005


Jon,
> How is the latency of instructions that have side effects modeled in the DFA
> scheduler. For example, define_insn_reservation only has one latency value,
> yet instructions such as loads with post increment addressing have two
> outputs, possibly with different latencies. Do both outputs get the same
> latency?

you should set the latency to the larger of those two values.  You can then
insert bypasses for the shorter one.  Look at the arm schedulers, which
have instances of that going on.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



More information about the Gcc mailing list