Re: [PATCH] target/ppc/mem_helper.c: Remove a conditional from dcbz_common()

2024-06-24 Thread BALATON Zoltan
On Sun, 23 Jun 2024, Richard Henderson wrote: On 6/23/24 15:24, BALATON Zoltan wrote: On Sun, 23 Jun 2024, Richard Henderson wrote: On 6/22/24 13:48, BALATON Zoltan wrote: Instead of passing a bool and select a value within dcbz_common() let the callers pass in the right value to avoid this co

Re: [PATCH] target/ppc/mem_helper.c: Remove a conditional from dcbz_common()

2024-06-23 Thread Richard Henderson
On 6/23/24 15:24, BALATON Zoltan wrote: On Sun, 23 Jun 2024, Richard Henderson wrote: On 6/22/24 13:48, BALATON Zoltan wrote: 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

Re: [PATCH] target/ppc/mem_helper.c: Remove a conditional from dcbz_common()

2024-06-23 Thread BALATON Zoltan
On Sun, 23 Jun 2024, Richard Henderson wrote: On 6/22/24 13:48, BALATON Zoltan wrote: 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 lo

Re: [PATCH] target/ppc/mem_helper.c: Remove a conditional from dcbz_common()

2024-06-23 Thread Richard Henderson
On 6/22/24 13:48, BALATON Zoltan wrote: 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

[PATCH] target/ppc/mem_helper.c: Remove a conditional from dcbz_common()

2024-06-22 Thread BALATON Zoltan
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 i