target/ppc/mem_helper.c: Remove a conditional from dcbz_common()
authorBALATON Zoltan <balaton@eik.bme.hu>
Sat, 22 Jun 2024 20:48:33 +0000 (22:48 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 23 Jul 2024 00:56:16 +0000 (10:56 +1000)
commit73a93ae5f4c49a166bc2a286330a1b45f58f4df7
tree433722d99265e223c746c4b8316363d7629a0076
parent3b9991e35c08be7fd6b84090b2114ff1bfd44d3f
target/ppc/mem_helper.c: Remove a conditional from dcbz_common()

Instead of passing a bool and select a value within dcbz_common() let
the callers pass in the right value to avoid this conditional
statement. On PPC dcbz is often used to zero memory and some code uses
it a lot. This change improves the run time of a test case that copies
memory with a dcbz call in every iteration from 6.23 to 5.83 seconds.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <20240622204833.5F7C74E6000@zero.eik.bme.hu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/mem_helper.c