Patch: PR40900, extending call patterns

Bernd Schmidt bernds@codesourcery.com
Fri Apr 30 15:09:00 GMT 2010


On 04/30/2010 10:57 AM, Paolo Bonzini wrote:
> However, I agree with Andrew that all the information should already be
> there (through the promote_function_mode hook), it's just that combine
> isn't trying hard enough.  Maybe something based on the attached patch?

When finished, it looks like the one below.  Simply setting
sign_bit_copies in record_dead_and_set_regs_1 doesn't work, and rather
than duplicating the bookkeeping I construct a small piece of RTL to
pass to record_value_for_reg that makes it do the right thing.

This works without modifying backends, but it has the drawback that it
can't optimize indirect calls since we're lacking a decl for them.

Testing now in progress on i686-linux.  Ok (this or the previous one)?


Bernd
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr40900-b.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100430/ec39f544/attachment.ksh>


More information about the Gcc-patches mailing list