OSDN Git Service

tcg/optimize: Split out fold_xi_to_x
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 26 Aug 2021 03:28:53 +0000 (20:28 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Oct 2021 00:11:22 +0000 (17:11 -0700)
commita63ce0e9cb860439d4277bd6dca696bce1f1bb6b
tree2e923baec0624f34fc821b6f1064ee34b7e4e855
parent9caca88a76a6b1e5203dd2470800941c2670a9cd
tcg/optimize: Split out fold_xi_to_x

Pull the "op r, a, i => mov r, a" optimization into a function,
and use them in the outer-most logical operations.

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