re PR tree-optimization/56962 (SLSR caused miscompilation of fftw)
authorJakub Jelinek <jakub@redhat.com>
Mon, 15 Apr 2013 14:56:36 +0000 (16:56 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 15 Apr 2013 14:56:36 +0000 (16:56 +0200)
commit7b8265ba384990c3ba844abb0568bb8e770e06bc
tree68db4238d01907323ffd8be56274c39a178d9624
parent5185d248d5a554d394c80126646160abbf4f0bfa
re PR tree-optimization/56962 (SLSR caused miscompilation of fftw)

PR tree-optimization/56962
* gimple-ssa-strength-reduction.c (record_increment): Only set
initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
either rhs1 or rhs2 is equal to c->base_expr.

* gcc.c-torture/execute/pr56962.c: New test.

From-SVN: r197978
gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr56962.c [new file with mode: 0644]