]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/optimize: Use fold_masks_zs in fold_count_zeros
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 9 Dec 2024 01:47:51 +0000 (19:47 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Dec 2024 16:32:14 +0000 (08:32 -0800)
commitce1d663ff8a4535e4c72471cab3e52cb24fb7eb1
tree35a5035aec68f4ae0a5be552657a3546c314a646
parentc1e7b989c8f05a4e78896a8856530492d87b51b4
tcg/optimize: Use fold_masks_zs in fold_count_zeros

Avoid the use of the OptContext slots. Find TempOptInfo once.
Compute s_mask from the union of the maximum count and the
op2 fallback for op1 being zero.

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