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]

Re: [PATCH] fix prefetch optimization in loop.c


On Mon, Jan 21, 2002 at 04:31:32PM -0800, Janis Johnson wrote:
> emit_prefetch_instructions() was pulling out the CONST_INT and
> combining it with other index values, but if it decided not to generate
> a prefetch, the original rtx was changed with no good way to put it
> back the way it was.

Out of curiosity, what was emit_prefetch_instructions replacing
the CONST_INT with?  (const (symbol_ref)) isn't happy, neither
is (const (plus (symbol_ref) (const_int 0))).

Looks like remove_constant_addition needs to be smarter about
handling CONST.


r~


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