combine tweek

Bernd Schmidt bernds@redhat.co.uk
Mon Nov 6 05:17:00 GMT 2000


On Mon, 6 Nov 2000, Jan Hubicka wrote:

> This patch avoids combine from combining loads/stores to hard register with the
> instruction.  This was primarily made to fix testcase sent few minutes ago
> (that shows up in the x86-64 port due to register passing conventions), but it
> also improves the code on 2 address non-SRC machines.

> 	* combine.c (can_combine_p): Do not combine loads/stores to hard regs.

I've advocated installing a similar patch for a long time now.  I'd be happy
if the issue finally got resolved.
Note that there is some weird cruft in combine that tries to deas with
SMALL_REGISTER_CLASSES.  I suspect that most of that can go away if we use
this patch or a similar one.


Bernd



More information about the Gcc-patches mailing list