tcg/optimize: Use finish_folding in fold_dup, fold_dup2
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
3d5ec804da
commit
e089d694e1
@ -1698,7 +1698,7 @@ static bool fold_dup(OptContext *ctx, TCGOp *op)
|
|||||||
t = dup_const(TCGOP_VECE(op), t);
|
t = dup_const(TCGOP_VECE(op), t);
|
||||||
return tcg_opt_gen_movi(ctx, op, op->args[0], t);
|
return tcg_opt_gen_movi(ctx, op, op->args[0], t);
|
||||||
}
|
}
|
||||||
return false;
|
return finish_folding(ctx, op);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool fold_dup2(OptContext *ctx, TCGOp *op)
|
static bool fold_dup2(OptContext *ctx, TCGOp *op)
|
||||||
@ -1713,7 +1713,7 @@ static bool fold_dup2(OptContext *ctx, TCGOp *op)
|
|||||||
op->opc = INDEX_op_dup_vec;
|
op->opc = INDEX_op_dup_vec;
|
||||||
TCGOP_VECE(op) = MO_32;
|
TCGOP_VECE(op) = MO_32;
|
||||||
}
|
}
|
||||||
return false;
|
return finish_folding(ctx, op);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool fold_eqv(OptContext *ctx, TCGOp *op)
|
static bool fold_eqv(OptContext *ctx, TCGOp *op)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user