[RFA] Fix PR rtl-optimization/30807

Eric Botcazou ebotcazou@adacore.com
Sat Jul 4 13:45:00 GMT 2009


> 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



More information about the Gcc-patches mailing list