This is the mail archive of the gcc@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: what does the calling for min_insn_conflict_delay mean


"Amker.Cheng" <amker.cheng@gmail.com> writes:

>    In function new_ready, it calls to min_insn_conflict_delay with
> "min_insn_conflict_delay (curr_state, next, next)".
> But the function's comments say that it returns minimal delay of issue of
> the 2nd insn after issuing the 1st in given state.
> Why the last two parameter for the call are both "next"?
> seems conflict with the comments.

This change dates back to the first DFA scheduler patch.  It does seem a
little odd, particularly as the call in new_ready is the only use of
min_insn_conflict_delay.  CC'ing vmakarov in case he remembers anything
about this old code.

Ian


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