]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: remove CC_OP_CLR
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Jun 2024 08:16:47 +0000 (10:16 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Oct 2024 17:28:33 +0000 (18:28 +0100)
commite09447c39f3afad9920f2a1764e284976767d96e
treef910d921761e93fddfbe45d71f60b8c8e261c772
parentc2954745f2c1ed0c8b8fe7c47c2b09479e3c6d81
target/i386: remove CC_OP_CLR

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.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu-dump.c
target/i386/cpu.h
target/i386/tcg/cc_helper.c
target/i386/tcg/emit.c.inc
target/i386/tcg/translate.c