This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH RS6000] peephole changing a move to itself with compare to a compare


On Tue, May 13, 2003 at 10:58:53AM -0400, Andrew Pinski wrote:
> This peephole changes `mr. rA, rA' to `cmp{w,d}i rA, 0' which is faster 
> on
> the power 4, note I think there is a deficiency in a generic part of
> gcc's back-end but this was the fastest way and easiest way to fix it.

I am not responsible for the rs6000 backend any more, but I don't think a
peephole is the right approach for this patch.  I would think modifying the
define_split to not do the move would be a better task.

-- 
Michael Meissner
email: meissner@the-meissners.org
http://www.the-meissners.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]