re PR tree-optimization/90356 (Missed optimization for variables initialized to 0.0)
authorJakub Jelinek <jakub@redhat.com>
Wed, 8 May 2019 07:21:48 +0000 (09:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 8 May 2019 07:21:48 +0000 (09:21 +0200)
commitf7b7e5d04712f3672a01d546e0f82328651d0c89
tree51a86a4fed83edf3c604bf59e061f83a6cc3898b
parentb65b77cc80885f72f710da4134f05fc6b12fc8c5
re PR tree-optimization/90356 (Missed optimization for variables initialized to 0.0)

PR tree-optimization/90356
* match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.

* gcc.dg/tree-ssa/pr90356-1.c: New test.
* gcc.dg/tree-ssa/pr90356-2.c: New test.
* gcc.dg/tree-ssa/pr90356-3.c: New test.
* gcc.dg/tree-ssa/pr90356-4.c: New test.

From-SVN: r271001
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr90356-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr90356-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr90356-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr90356-4.c [new file with mode: 0644]