patch to fix mips16 LRA register shuffling

Vladimir Makarov vmakarov@redhat.com
Thu Oct 31 16:27:00 GMT 2013


  The following patch fixes a problem reported by Matt Fortune.  LRA
generated additional moves for frame pointer eliminated into stack pointer.

  LRA uses register number of the elimination result when matching
constraints.  But it did not substitute RTL operand itself and that
resulted in EXTRA_CONSTRAINT hooks failure and worse code generation.

  The patch was bootstrapped on x86/x86-64 and ppc64 (with LRA).

  Committed as rev. 204267.

2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>

        * lra-constraints (process_alt_operands): Use the result
        elimination register for operand when matching constraints.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips16.patch
Type: text/x-patch
Size: 1704 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20131031/692b0429/attachment.bin>


More information about the Gcc-patches mailing list