This is the mail archive of the gcc-bugs@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: Pessimization



  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


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