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] |
Vladimir Makarov wrote:Yes, right.The following patch fixes a latent reload inheritance bug triggered by IRA. The details of the bug could be found inPresumably you can't do this in inc_for_reload because incloc is a MEM and you can't map from the MEM back to the appropriate REG, right?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37514
The patch was successfully tested on sh and itanium (as one more target using INC/DEC in addressing). Is it ok to commit?
2008-11-24 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/37514 * reload1.c (emit_input_reload_insns): Invalidate reg_last_reload for input register too.
I think the comment in the new code is rather confusing. I think you could just adjust the comment from inc_for_reload and note how inc_for_reload and your new code differ in how they handle pseudos living in memory.Jeff, sorry for waisting your time on review of the patch. After some thoughts I decided to work more on the problem. Although the current patch is safe, it removes some optimization opportunities for inheritance of incremented values.
With the comment adjustment, this patch is fine.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |