https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62178
--- Comment #9 from Yvan Roux <yroux at gcc dot gnu.org> --- Author: yroux Date: Thu Apr 2 06:45:24 2015 New Revision: 221820 URL: https://gcc.gnu.org/viewcvs?rev=221820&root=gcc&view=rev Log: gcc/ 2015-04.02 Yvan Roux <yvan.r...@linaro.org> Backport from trunk r218855. 2014-12-18 Bin Cheng <bin.ch...@arm.com> PR tree-optimization/62178 * tree-ssa-loop-ivopts.c (cheaper_cost_with_cand): New function. (iv_ca_replace): New function. (try_improve_iv_set): New parameter try_replace_p. Break local optimal fixed-point by calling iv_ca_replace. (find_optimal_iv_set_1): Pass new argument to try_improve_iv_set. gcc/testsuite/ 2015-04:02 Yvan Roux <yvan.r...@linaro.org> Backport from trunk r218855. 2014-12-18 Bin Cheng <bin.ch...@arm.com> PR tree-optimization/62178 * gcc.target/aarch64/pr62178.c: New test. Added: branches/linaro/gcc-4_9-branch/gcc/testsuite/gcc.target/aarch64/pr62178.c Modified: branches/linaro/gcc-4_9-branch/gcc/ChangeLog.linaro branches/linaro/gcc-4_9-branch/gcc/testsuite/ChangeLog.linaro branches/linaro/gcc-4_9-branch/gcc/tree-ssa-loop-ivopts.c