commit | ae14b33de8d329d5497db5446bdc0b0cb6ba756b | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Thu Jun 20 10:34:28 2024 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Oct 31 18:28:33 2024 +0100 |
tree | ee8f830177d04ee80dbbe80b2598669ff501887c | |
parent | 1f7f72bdc4faece6af875503a3abe992e87e776b [diff] |
target/i386: optimize computation of ZF from CC_OP_DYNAMIC Most uses of CC_OP_DYNAMIC are for CMP/JB/JE or similar sequences. We can optimize many of them to avoid computation of the flags. This eliminates both TCG ops to set up the new cc_op, and helper instructions because evaluating just ZF is much cheaper. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>