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]

patch to fix PR65302


The following patch fixes PR65302

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65032

LRA rematerialization sub-pass did not update info about scratch pseudos in rematerialized insns and this resulted in skipping reverse transformation of scratch pseudos into scratches in such insns at the LRA end.

The patch was bootstrapped and tested on x86-64.

Committed as rev. 221062.

2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>

        PR target/65032
        * lra-remat.c (update_scratch_ops): New.
        (do_remat): Call it.
        * lra.c (lra_register_new_scratch_op): New. Take code from ...
        (remove_scratches): ... here.
        * lra-int.h (lra_register_new_scratch_op): New prototype.

2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>

        PR target/65032
        * g++.dg/pr65032.C: New.



Attachment: pr65302.patch
Description: Text document


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