combine.c: Include "output.h" to define dump_file.
authorRoger Sayle <roger@eyesopen.com>
Wed, 30 Jun 2004 13:02:36 +0000 (13:02 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Wed, 30 Jun 2004 13:02:36 +0000 (13:02 +0000)
commit64b8935d4809f32734fa7abe9353fc159adacbfd
tree64ab0426be79b2945213d9e8b897ba885a6fec73
parente5ddaa24beae8ae06e2a8e962131a1bc55f7146e
combine.c: Include "output.h" to define dump_file.

* 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.

From-SVN: r83908
gcc/ChangeLog
gcc/Makefile.in
gcc/combine.c