OSDN Git Service

* combine.c: Include "output.h" to define dump_file.
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jun 2004 13:02:36 +0000 (13:02 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jun 2004 13:02:36 +0000 (13:02 +0000)
commitf1a2a2d6175de77a1496bc5d80a17b877eea060c
tree64ab0426be79b2945213d9e8b897ba885a6fec73
parent3935110319b5867c63b1f40b588c7aa3e5a72ec5
* combine.c: Include "output.h" to define dump_file.
(uid_insn_cost, last_insn_cost): New global variables.
(combine_insn_cost): New function to estimate cost of an insn.
(combine_validate_cost): New function to determine whether a
try_combine replacement sequence is cheaper than the original.
(combine_instructions): Allocate and populate uid_insn_cost
array at the start of the combine pass, and deallocate it after.
(try_combine): Check combine_validate_cost to determine whether
a "recombination" should be rejected as being more expensive.
* Makefile.in (combine.o): Add dependency upon output.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83908 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/Makefile.in
gcc/combine.c