From: Richard Henderson Date: Mon, 9 Dec 2024 02:18:02 +0000 (-0600) Subject: tcg/optimize: Use finish_folding in fold_mul* X-Git-Tag: v10.0.0-rc0~107^2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd9c5834d83ccde38268a52d3201659a6286428b;p=thirdparty%2Fqemu.git tcg/optimize: Use finish_folding in fold_mul* Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- diff --git a/tcg/optimize.c b/tcg/optimize.c index 0104582b3ae..10d1376f620 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -1969,7 +1969,7 @@ static bool fold_mul(OptContext *ctx, TCGOp *op) fold_xi_to_x(ctx, op, 1)) { return true; } - return false; + return finish_folding(ctx, 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)) { return true; } - return false; + return finish_folding(ctx, 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); return true; } - return false; + return finish_folding(ctx, op); } static bool fold_nand(OptContext *ctx, TCGOp *op)