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] Regression caused by reload_cse_simplify_operands bugs


Ulrich Weigand <uweigand@de.ibm.com> writes:

> 	* postreload.c (reload_cse_simplify_operands): Fix bug in sorting
> 	algorithm so as to choose the best, not the worst, alternative.
> 	Reset accumulated register class before processing next alternative.

This is OK.  Thanks.

I guess nobody noticed since it most be rather rare that there would
be two different alternatives available anyhow.  It's particularly
hard to imagine it happening on a RISC chip.

Looking at the code, I wonder why it carefully sorts the entire
alternative_order array and then only uses the first element of it.

Ian


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