aboutsummaryrefslogtreecommitdiff
path: root/scripts/tracetool/backend/dtrace.py
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-10-04 15:53:26 -0300
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-10-15 12:21:04 -0300
commit35845cf8fe8b484dcd5cead7a2b68d7c3099948b (patch)
tree8f066e20be043460690c21f33cdf1ed4e12068c3 /scripts/tracetool/backend/dtrace.py
parentd0b24b7f50e17ad288dd7647dbaf09c81c30f691 (diff)
downloadqemu-35845cf8fe8b484dcd5cead7a2b68d7c3099948b.zip
qemu-35845cf8fe8b484dcd5cead7a2b68d7c3099948b.tar.gz
qemu-35845cf8fe8b484dcd5cead7a2b68d7c3099948b.tar.bz2
target/mips: Use tcg_constant_tl() instead of tcg_gen_movi_tl()
Directly use tcg_constant_tl() for constant integer, this save a call to tcg_gen_movi_tl(), often saving a temp register. Most of the places found using the following Coccinelle spatch script: @@ identifier tmp; constant val; @@ * TCGv tmp = tcg_temp_new(); ... * tcg_gen_movi_tl(tmp, val); @@ identifier tmp; int val; @@ * TCGv tmp = tcg_temp_new(); ... * tcg_gen_movi_i64(tmp, val); Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20241004202621.4321-2-philmd@linaro.org>
Diffstat (limited to 'scripts/tracetool/backend/dtrace.py')
0 files changed, 0 insertions, 0 deletions