]> git.proxmox.com Git - mirror_qemu.git/commit
tcg/optimize: Split out fold_xi_to_i
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 25 Aug 2021 20:19:52 +0000 (13:19 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Oct 2021 00:11:22 +0000 (17:11 -0700)
commite8679955ec0791122a6c22d48ae760a215204f6a
tree7828cbe6648b5fce1041025a10c9aab7f500f090
parentca7bb049a0250890afd4dd0e66f10b8a4d51715c
tcg/optimize: Split out fold_xi_to_i

Pull the "op r, a, 0 => movi r, 0" optimization into a function,
and use it in the outer opcode fold functions.

Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/optimize.c