re PR tree-optimization/64705 (Bad code generation of sieve on x86-64 because of...
authorBin Cheng <amker@gcc.gnu.org>
Fri, 13 Feb 2015 05:44:46 +0000 (05:44 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Fri, 13 Feb 2015 05:44:46 +0000 (05:44 +0000)
commitfc06280eb11be2316b12a51112cb62614141f32d
tree1306ae46686893d216153301b433362f1e20624d
parent785f21af82139f512eb12f3318899c9f967409e6
re PR tree-optimization/64705 (Bad code generation of sieve on x86-64 because of too aggressive IV optimizations)

PR tree-optimization/64705
* tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
* tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
* tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
(find_bivs, find_givs_in_stmt_scev): Pass new argument to
expand_simple_operations.

testsuite
PR tree-optimization/64705
* gcc.dg/tree-ssa/pr64705.c: New test.

From-SVN: r220676
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr64705.c [new file with mode: 0644]
gcc/tree-ssa-loop-ivopts.c
gcc/tree-ssa-loop-niter.c
gcc/tree-ssa-loop-niter.h