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: RFA: MN10300: Add redundant comparison elimination pass


On 11/10/10 01:34, Nick Clifton wrote:
Hi Guys,

   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 ?

Cheers
   Nick

gcc/ChangeLog
2010-11-10  Nick Clifton<nickc@redhat.com>

	* config/mn10300/mn10300.c (scan_for_redundant_compares): New
	function.
	(mn10300_reorg): New function.
	(TARGET_MACHINE_DEPENDENT_REORG): Define.
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?

jeff


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