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]

Re: cse/const calls improvement


On Sun, Apr 09, 2000 at 02:00:12PM +0200, Jan Hubicka wrote:
> 	* cse.c (true_dependence_in_rtx): New function.
> 	(invalidate): Use it.

The idea is sound, but I'd prefer you use for_each_rtx,
which would avoid bugs like

> +       if (fmt[i] == 'e' && XEXP (x, i)
> + 	  && true_dependence_in_rtx (mem, mem_mode, XEXP (x, i)))

forgetting to iterate over 'E' vectors.


r~

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