]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/optimize: Split out fold_affected_mask
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 19 Dec 2024 18:33:51 +0000 (10:33 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Dec 2024 15:32:50 +0000 (07:32 -0800)
commit045ace35a8587f9552b528595f2d67a76b77f1b5
tree3e33039f513a1a2221ad2b553799ca03563d51d0
parent1526855c012a7f1314278e4f8fbb0741ec74a372
tcg/optimize: Split out fold_affected_mask

There are only a few logical operations which can compute
an "affected" mask.  Split out handling of this optimization
to a separate function, only to be called when applicable.

Remove the a_mask field from OptContext, as the mask is
no longer stored anywhere.

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