This is the mail archive of the
mailing list for the GCC project.
Re: RFA: MN10300: Add redundant comparison elimination pass
- From: Jeff Law <law at redhat dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: rth at redhat dot com, aoliva at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Nov 2010 07:37:44 -0700
- Subject: Re: RFA: MN10300: Add redundant comparison elimination pass
- References: <email@example.com>
On 11/10/10 01:34, Nick Clifton wrote:
Hi Guys,My first thought is isn't this handled in a target independent way
elsewhere? How do the x86 and other targets that were converted away
from cc0 handle this stuff?
As Richard pointed out my previous patch (for LIW/SETLB) included a
separate feature which should have been submitted on its own. So here
it is - a machine reorg pass to eliminate redundant compares.
The scan could be improved to look further back through the
instruction stream for insns that set the EPSW register, but I am
leaving that for a future patch.
Tested without regressions on an mn10300-elf toolchain.
OK to apply ?
2010-11-10 Nick Clifton<firstname.lastname@example.org>
* config/mn10300/mn10300.c (scan_for_redundant_compares): New
(mn10300_reorg): New function.