IR_OPRES removed on branch 80cc-simplify, 2026-09-13.

The operand-residency-to-DE thesis is REJECTED — see adr/0018. This gate was
its residue: an opt-in proposal path offering a reused deref/binop result a
general DE-home. The shared predicate de_operand_realizable stays, because the
IR_RANGED fail-safe DE-cache brick still uses it.

=== IR_OPRES gate + comment ===
/* OPRES operand-residency (opt-in IR_OPRES) — a reused deref/binop RESULT value.
   sdcc keeps these in DE so a later compare folds to `sbc hl,de` and the value
   survives the HL-clobber without a push-spill; 80cc funnels them through HL →
   `push hl` + byte-wise compare (OPERAND_RESIDENCY_SPEC.md §1). Eligible for a
   GENERAL DE-home (CF_DE_GENERAL: speculative
   — the lowerer reverts it to a spill if no DE-clean region forms, so a
   mis-proposal is byte-safe). Single-def (write_count<=1, distinguishes it from
   the loop-carried de_general/de_acc shapes), reused (use_count>=2), width-2,
   not addr-taken/volatile/param, not a deref base (bases want pointer-like
   homes), def is a deref (IR_LD_MEM) or an ALU binop. DE-freeness across the
   range is the ARBITER's interference call (it competes for the one general
   DE-home against the loop-carried words), NOT a proposer gate. */
static int opres_on(void) { static int c = -1; if (c < 0) c = getenv("IR_OPRES") != NULL; return c; }


=== de_operand_realizable gate ===
    if (!opres_on() && !ranged_on()) return 0;

=== IR_OPRES candidate proposal ===
        /* OPRES (opt-in IR_OPRES): reused deref/binop operand → general DE-home.
           The IR_RANGED fail-safe brick does NOT enter this competition — it keeps
           the value SPILL and only leaves a DE cache at its def (hint set in a
           post-placement pass in ir_alloc). */
        if (opres_on() && !opt_disabled("de-home"))
            for (int v = 0; v < f->n_vregs; v++)
                if (de_operand_realizable(f, v, use_count, write_count,
                                          def_kind, wd_base))
                    add_cand(pool, &n, pool_cap, v, use_count[v], first_use[v],
                             last_use[v], RC_DE_ACC, CF_DE_GENERAL);

