Get rid of temporary variable cache.
Quoted 3 lines · Filip Navara
The temporary variable cache actually hurts TCG more than it helps. Empirical results show that when running the Dhrystone benchmark with this patch improves the speed by about 2%.
I find it hard to believe this patch has any significant effect on runtime, other than random variation. My guess is it spends almost all of its time in a few guest loops, and no time doing translation. I'd expect the generated code should be the same before and after.
I'm not saying this patch is a bad idea (new_tmp/dead_tmp predate tcg_temp_free and are now redundant), just that I don't believe your benchmark results.
Paul
Quoted 9 lines · Paul Brook
Quoted 3 lines · Filip Navara
The temporary variable cache actually hurts TCG more than it helps. Empirical results show that when running the Dhrystone benchmark with this patch improves the speed by about 2%.
I find it hard to believe this patch has any significant effect on runtime, other than random variation. My guess is it spends almost all of its time in a few guest loops, and no time doing translation. I'd expect the generated code should be the same before and after.
You are right. That will teach me not to trust benchmarks and validate the results by other means also.
Quoted 3 lines
I'm not saying this patch is a bad idea (new_tmp/dead_tmp predate
tcg_temp_freeand are now redundant), just that I don't believe your benchmark results.
And you were right not to believe them. Thanks for looking at the patch.
Best regards,
Filip Navara