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: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
5e0f40cfed
commit
f8b8412907
@ -509,8 +509,10 @@ static const uint32_t tcg_to_isel[] = {
|
|||||||
static inline void tcg_out_mov(TCGContext *s, TCGType type,
|
static inline void tcg_out_mov(TCGContext *s, TCGType type,
|
||||||
TCGReg ret, TCGReg arg)
|
TCGReg ret, TCGReg arg)
|
||||||
{
|
{
|
||||||
|
if (ret != arg) {
|
||||||
tcg_out32(s, OR | SAB(arg, ret, arg));
|
tcg_out32(s, OR | SAB(arg, ret, arg));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static inline void tcg_out_rld(TCGContext *s, int op, TCGReg ra, TCGReg rs,
|
static inline void tcg_out_rld(TCGContext *s, int op, TCGReg ra, TCGReg rs,
|
||||||
int sh, int mb)
|
int sh, int mb)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user