tcg/optimize: Use fold_masks_zs in fold_qemu_ld
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 9 Dec 2024 02:33:30 +0000 (20:33 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Dec 2024 16:32:15 +0000 (08:32 -0800)
commit6813be9b9bb962865eb6770555f34d4b0d6066f3
tree4bb0a2562ddb19bb3d819c16ddb9b637ef31384f
parent54e26b292bbf9602f49a66c0c022a623d0beec4b
tcg/optimize: Use fold_masks_zs in fold_qemu_ld

Avoid the use of the OptContext slots.

Be careful not to call fold_masks_zs when the memory operation
is wide enough to require multiple outputs, so split into two
functions: fold_qemu_ld_1reg and fold_qemu_ld_2reg.

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