tcg/optimize: Use finish_folding in fold_mul*

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2024-12-08 20:18:02 -06:00
parent 322027841f
commit cd9c5834d8

View File

@ -1969,7 +1969,7 @@ static bool fold_mul(OptContext *ctx, TCGOp *op)
fold_xi_to_x(ctx, op, 1)) { fold_xi_to_x(ctx, op, 1)) {
return true; return true;
} }
return false; return finish_folding(ctx, op);
} }
static bool fold_mul_highpart(OptContext *ctx, TCGOp *op) static bool fold_mul_highpart(OptContext *ctx, TCGOp *op)
@ -1978,7 +1978,7 @@ static bool fold_mul_highpart(OptContext *ctx, TCGOp *op)
fold_xi_to_i(ctx, op, 0)) { fold_xi_to_i(ctx, op, 0)) {
return true; return true;
} }
return false; return finish_folding(ctx, op);
} }
static bool fold_multiply2(OptContext *ctx, TCGOp *op) static bool fold_multiply2(OptContext *ctx, TCGOp *op)
@ -2023,7 +2023,7 @@ static bool fold_multiply2(OptContext *ctx, TCGOp *op)
tcg_opt_gen_movi(ctx, op2, rh, h); tcg_opt_gen_movi(ctx, op2, rh, h);
return true; return true;
} }
return false; return finish_folding(ctx, op);
} }
static bool fold_nand(OptContext *ctx, TCGOp *op) static bool fold_nand(OptContext *ctx, TCGOp *op)