tcg/optimize: Do swap_commutative2 in do_constant_folding_cond2
commit7e64b114d19d734dc0ecbf100e6adf18f0fb10e2
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Oct 2023 23:53:56 +0000 (24 16:53 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 3 Feb 2024 23:43:50 +0000 (3 23:43 +0000)
treeeb6ab0f3134247a22a265ee53e8abc70d08a382c
parent246c4b72fa88419a45ff3d4b8e8fef405337bc1a
tcg/optimize: Do swap_commutative2 in do_constant_folding_cond2

Mirror the new do_constant_folding_cond1 by doing all
argument and condition adjustment within one helper.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/optimize.c