* tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
commitc4d3b42853583ec88202ae5fd9470203b6a276b2
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Apr 2005 21:31:16 +0000 (23 21:31 +0000)
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Apr 2005 21:31:16 +0000 (23 21:31 +0000)
treedbfe75c1789fcde717a5009f418ee23185011c69
parentc3ceba8e8139354ec6e7fb9510bb3541d5baac23
* tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
(find_interesting_uses_cond): Do not use integer_zerop and
integer_nonzerop to check for integer constants.
(set_use_iv_cost): Record the value field.
(determine_use_iv_cost_generic, determine_use_iv_cost_address,
determine_use_iv_cost_outer): Set the value field of the cost pair.
(may_eliminate_iv): Do not return the comparison code.
(iv_elimination_compare): New function.
(determine_use_iv_cost_condition): Set the value field.  Record
noneliminable invariants correctly.
(rewrite_use_compare, rewrite_use_outer): Use the value field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98634 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c