[Valgrind-developers] [PATCH 1/2] x86: optimize XCHG to MOV for same-register forms

Paul Floyd pjfloyd@wanadoo.fr
Fri Jul 3 06:09:20 GMT 2026


On 2026-07-03 08:00, Jan Beulich wrote:
> On 03.07.2026 06:55, Paul Floyd wrote:
>> Would it be possible for gas to only do this transformation if the source and destination registers are different?
> When the registers are different, this transformation is invalid to do.

OK so you are optimising a no-op. Does GCC use it as a no-op?


Regards

Paul



More information about the Binutils mailing list