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

Jan Beulich via Valgrind-developers <valgrind-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Newsgroups gmane.comp.debugging.valgrind.devel,gmane.comp.gnu.binutils
Message-ID <[email protected]>
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.

Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.