提交 f8b84129 编写于 作者: R Richard Henderson

tcg-ppc64: Avoid code for nop move

While these are rare from code that's been through the optimizer,
it's not uncommon within the tcg backend.
Signed-off-by: NRichard Henderson <rth@twiddle.net>
上级 5e0f40cf
......@@ -509,7 +509,9 @@ static const uint32_t tcg_to_isel[] = {
static inline void tcg_out_mov(TCGContext *s, TCGType type,
TCGReg ret, TCGReg arg)
{
tcg_out32(s, OR | SAB(arg, ret, arg));
if (ret != arg) {
tcg_out32(s, OR | SAB(arg, ret, arg));
}
}
static inline void tcg_out_rld(TCGContext *s, int op, TCGReg ra, TCGReg rs,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册