]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/optimize: Simplify fold_orc constant checks
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 10 Dec 2024 14:14:35 +0000 (08:14 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 30 Jun 2025 13:42:38 +0000 (07:42 -0600)
commit61617f715ec26877cdda9e027ac43945910f4fe9
treebf9dfef1e75f0cf1192f80e3fda41426f12192d0
parent3c75cb4d64811cfba2c03d66328d838cc72f8355
tcg/optimize: Simplify fold_orc constant checks

If operand 2 is constant, then the computation of z_mask and a_mask
will produce the same results as the explicit check via fold_xi_to_i.
Shift the calls of fold_xx_to_i and fold_ix_to_not down below the
i2->is_const check.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/optimize.c