This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] Fix PR rtl-optimization/30807
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 4 Jul 2009 15:42:20 +0200
- Subject: Re: [RFA] Fix PR rtl-optimization/30807
- References: <20090611.065131.04692084.kkojima@rr.iij4u.or.jp>
> 2009-06-10 J"orn Rennecke <joern.rennecke@arc.com>
> Kaz Kojima <kkojima@gcc.gnu.org>
>
> PR rtl-optimization/30807
> * postreload.c (reload_combine): For every new use of REG_SUM,
> record the use of BASE.
The assertion seems superfluous to me, operand 1 of REG_SUM is always BASE.
So I'd just write:
+ /* For every new use of REG_SUM, we have to record the use
+ of BASE therein, i.e. operand 1. */
+ for (i = reg_state[regno].use_index;
+ i < RELOAD_COMBINE_MAX_USES; i++)
+ reload_combine_note_use
+ (&XEXP (*reg_state[regno].reg_use[i].usep, 1),
+ reg_state[regno].reg_use[i].insn);
OK with this change if it still passes a full testing cycle.
--
Eric Botcazou