You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is about instruction 0x0007, MOVL CX, DX. I think we should prefer XORL DX, DX. The reasoning is that it is shorter (2 bytes instead of 4) and avoids false dependencies between registers. This is only preferable when rematerialization is cheaper than a register copy, which are special but common cases, like zeroing.
I believe that the modification to regalloc should occur in processDest, but that's as far as I got.
This compiles as:
This issue is about instruction 0x0007,
MOVL CX, DX
. I think we should preferXORL DX, DX
. The reasoning is that it is shorter (2 bytes instead of 4) and avoids false dependencies between registers. This is only preferable when rematerialization is cheaper than a register copy, which are special but common cases, like zeroing.I believe that the modification to regalloc should occur in processDest, but that's as far as I got.
cc @cherrymui @randall77
The text was updated successfully, but these errors were encountered: