OSDN Git Service

tcg/optimize: Split out fold_masks
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 26 Aug 2021 05:42:19 +0000 (22:42 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Oct 2021 00:11:22 +0000 (17:11 -0700)
commitfae450ba4764dcf8c7a131131639ac0969a8eae8
tree935be11ea404697c41b014b5a9f11f0b56e0c098
parentda48e2720227473041b7a14dd9f838577d36833a
tcg/optimize: Split out fold_masks

Move all of the known-zero optimizations into the per-opcode
functions.  Use fold_masks when there is a possibility of the
result being determined, and simply set ctx->z_mask otherwise.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/optimize.c