Re: [PATCH v2] plugins: optimize cpu_index code generation

2024-12-16 Thread Pierrick Bouvier
Hi Richard, On 11/29/24 05:29, Richard Henderson wrote: On 11/28/24 15:38, Pierrick Bouvier wrote: When running with a single vcpu, we can return a constant instead of a load when accessing cpu_index. A side effect is that all tcg operations using it are optimized, most notably scoreboard acces

Re: [PATCH v2] plugins: optimize cpu_index code generation

2024-11-29 Thread Richard Henderson
On 11/28/24 15:38, Pierrick Bouvier wrote: When running with a single vcpu, we can return a constant instead of a load when accessing cpu_index. A side effect is that all tcg operations using it are optimized, most notably scoreboard access. When running a simple loop in user-mode, the speedup is

[PATCH v2] plugins: optimize cpu_index code generation

2024-11-28 Thread Pierrick Bouvier
When running with a single vcpu, we can return a constant instead of a load when accessing cpu_index. A side effect is that all tcg operations using it are optimized, most notably scoreboard access. When running a simple loop in user-mode, the speedup is around 20%. Signed-off-by: Pierrick Bouvier