On 08/03/2011 11:30 AM, Alexander Monakov wrote:
From: Sergey Grechanik<mouseent...@condor.intra.ispras.ru>

Sometimes we need to be able to call sched_get_condition_with_rev from
selective scheduler for an instruction with zero luid (i.e. before h_d_i_d
had been extended).  On such occasion, we need to bypass the caching and use
"old", uncached lookup.

The patch factors out caching logic to a separate function and amends it to
skip cached lookup for instructions with zero luid.  It also renames INSN_COND
to INSN_CACHED_COND to avoid clash with the same macro in predication patch
for sel-sched.

2011-08-04  Sergey Grechanik<mouseent...@ispras.ru>

        * sched-deps.c (sched_get_condition_with_rev): Rename to ...
        (sched_get_condition_with_rev_uncached): ... this.  Factor out
        condition caching logic into ...
        (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
        attempt to use cache for instructions with zero luid.
        (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
        * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
Ok, thanks.

Reply via email to