tree-ssa-loop-ivopts.c (ivopts_data): New field name_expansion_cache.
authorBin Cheng <bin.cheng@arm.com>
Fri, 15 Aug 2014 02:42:33 +0000 (02:42 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Fri, 15 Aug 2014 02:42:33 +0000 (02:42 +0000)
commit3230c614e7d67dee0eb5e20bb6c88bbe8393bb3e
treedf8afbff2132f6e4c3177834a99317760f7adbf6
parente33a3cf354873030276965a49eb98e97f88ec90b
tree-ssa-loop-ivopts.c (ivopts_data): New field name_expansion_cache.

* tree-ssa-loop-ivopts.c (ivopts_data): New field
name_expansion_cache.
(tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
(tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
(strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
(difference_cannot_overflow_p): New parameter.  Use affine
expansion for equality check.
(iv_elimination_compare_lt): Pass new argument.

testsuite/ChangeLog
* gcc.dg/tree-ssa/ivopts-lt-2.c: New test.

From-SVN: r213997
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ivopts-lt-2.c [new file with mode: 0644]
gcc/tree-ssa-loop-ivopts.c