This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Pessimization
- To: "Adam J. Richter" <adam at yggdrasil dot com>
- Subject: Re: Pessimization
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 07 Dec 1997 22:28:31 -0700
- cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199712080154.RAA30567@adam.yggdrasil.com>you write:
>
> I am pretty unfamiliar with gcc internals, so please forgive
> me if this patch is incorrect. However, I think I have found a spot
> in cse.c where the compiler may be deliberately choosing the worse
> alternative because a comparison is reversed. I am just infrering this
> from the names of the functions and variables and some surrounding code.
> Anyhow, I have attached a patch that should fix this error if it is an
> error.
In that code the compiler wants to choose the address with the highest
cost as doing so is likely to remove the most instructions.
See the definition of ADDRESS_COST in the gcc manual.
jeff