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

Christian Ludloff <[email protected]>
Newsgroups gmane.comp.gnu.binutils
Message-ID <CAKSQd8X=6ZsjCYda+gH5_d_-i3727gihn-MZd8b39iNhRVc=mQ@mail.gmail.com>
> Assembler optimization is intended primarily for hand-written code.

Uhm, hand-written assembler code is the prime example
for *not* wanting specified instruction FOO suddenly turn
into emitted instruction BAR.

If I code XCHG, then I mean to get XCHG. Had I wanted
MOV, I'd have coded MOV.

What is the expected worthwhile benefit of the proposed
transformations in practice?

--
C.
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.