On 10/20/24 08:53, Paolo Bonzini wrote:
Just use CC_OP_EFLAGS; it is not that likely that the flags computed by
CC_OP_CLR survive the end of the basic block, in which case there is no
need to spill cc_op_src.

cc_op_src now does need spilling if the XOR is followed by a memory
operation, but this only costs 0.2% extra TCG ops.  They will be recouped
by simplifications in how QEMU evaluates ZF at runtime, which are even
greater with this change.

Signed-off-by: Paolo Bonzini<pbonz...@redhat.com>
---
  target/i386/cpu.h           |  1 -
  target/i386/cpu-dump.c      |  1 -
  target/i386/tcg/cc_helper.c |  3 ---
  target/i386/tcg/translate.c | 10 ----------
  target/i386/tcg/emit.c.inc  | 15 ++++-----------
  5 files changed, 4 insertions(+), 26 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to