PR tree-optimization/66388
commit37c2e09d197c028a935d1437ebf0d374ee7c86c0
authoramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Sep 2015 03:40:18 +0000 (17 03:40 +0000)
committeramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Sep 2015 03:40:18 +0000 (17 03:40 +0000)
tree35de94bb740404aa91c3a5be13bf446c6d719254
parent6c48ce8446857448444d2a0060439ed8e1cae057
PR tree-optimization/66388
* tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New
fields.
(dump_iv): Dump no_overflow information.
(alloc_iv): Initialize new field for struct iv.
(mark_bivs): Count number of no_overflow bivs.
(find_deriving_biv_for_expr, record_biv_for_address_use): New
functions.
(idx_find_step): Call new functions above.
(add_candidate_1, add_candidate): New paramter.
(add_iv_candidate_for_biv): Add sizetype cand for BIV.
(get_computation_aff): Simplify convertion of cand for BIV.
(get_computation_cost_at): Step cand's base if necessary.

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