tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
authorBin Cheng <bin.cheng@arm.com>
Thu, 31 Mar 2016 08:57:13 +0000 (08:57 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 31 Mar 2016 08:57:13 +0000 (08:57 +0000)
commit515558b8ff520dc07f1014b29e524b8994f73c9b
tree1967f313b30922e5e778e4db78b085e6d6488726
parentefc3536f46d9c96daf1f12b587edc583445c3902
tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.

* tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
(no_cost, infinite_cost): Initialize the new field.
(get_computation_cost_at): Record setup cost.
(determine_use_iv_cost_address): Skip cost computation for sub
uses if we can estimate it without losing accuracy.

From-SVN: r234612
gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c