latency in define_insn_reservation

Jim Wilson wilson@specifixinc.com
Wed Dec 10 07:55:00 GMT 2003


ml@bitbash.net wrote:
> If instr I is issued cycle = t and the results are usable in cylce t+1, should the latency in define_insn_reservation be 1 or 0?

The latency should be 1.  Try looking at existing dfa scheduler 
descriptions.  I doubt that you will find any that use a latency of 
zero, but there are lots that use a latency of 1 for simple instructions 
that you would expect to have single cycle latency.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list