tcg/optimize: Split out fold_to_not
commit0e0a32bacb29c4313ef195d2ea18809fd25cf5e2
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Aug 2021 20:18:01 +0000 (24 13:18 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Oct 2021 00:11:22 +0000 (27 17:11 -0700)
tree808329745db71cb45bbdbf09e5f2124b5d3c35e5
parent67f84c962166093f26a1f2c66034a44cf294e809
tcg/optimize: Split out fold_to_not

Split out the conditional conversion from a more complex logical
operation to a simple NOT.  Create a couple more helpers to make
this easy for 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