target/hexagon/idef-parser: Elide mov in gen_pred_assign
Merge mov with andi. Suggested-by: Taylor Simpson <tsimpson@quicinc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Message-Id: <20230306225724.2105263-1-richard.henderson@linaro.org>
This commit is contained in:
parent
6c2c5396f4
commit
877a3d20cd
|
@ -1722,9 +1722,7 @@ void gen_pred_assign(Context *c, YYLTYPE *locp, HexValue *left_pred,
|
|||
*left_pred = gen_tmp(c, locp, 32, UNSIGNED);
|
||||
}
|
||||
/* Extract first 8 bits, and store new predicate value */
|
||||
OUT(c, locp, "tcg_gen_mov_i32(", left_pred, ", ", &r, ");\n");
|
||||
OUT(c, locp, "tcg_gen_andi_i32(", left_pred, ", ", left_pred,
|
||||
", 0xff);\n");
|
||||
OUT(c, locp, "tcg_gen_andi_i32(", left_pred, ", ", &r, ", 0xff);\n");
|
||||
if (is_direct) {
|
||||
OUT(c, locp, "gen_log_pred_write(ctx, ", pred_id, ", ", left_pred,
|
||||
");\n");
|
||||
|
|
Loading…
Reference in New Issue