target/i386: pull computation of string update value out of loop
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 15 Dec 2024 09:06:11 +0000 (10:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jan 2025 10:35:33 +0000 (11:35 +0100)
commit4f094e27f3ad2a35e305cb26a2926864815b6ac6
treef9b6cf622a10f487a73654d4ceb2f44bab15a972
parent456709db50f424d112bc5f07260fdc51555f3a24
target/i386: pull computation of string update value out of loop

This is a common operation that is executed many times in rep
movs or rep stos loops.  It can improve performance by several
percentage points.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20241215090613.89588-13-pbonzini@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c