re PR tree-optimization/92734 (Missing match.pd simplification done by fold_binary_lo...
authorJakub Jelinek <jakub@redhat.com>
Tue, 3 Dec 2019 09:20:43 +0000 (10:20 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 3 Dec 2019 09:20:43 +0000 (10:20 +0100)
commit129bd066049f065e522990e63bb10ff92b3c018d
tree0e87242b0d74bc021daa843f615ce50227404735
parenta4c772e26dabdf8e2bf2d26d0d7f8e60d97f3f4e
re PR tree-optimization/92734 (Missing match.pd simplification done by fold_binary_loc on generic)

PR tree-optimization/92734
* match.pd ((CST1 - A) +- CST2 -> CST3 - A,
CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
inner subtraction.

* gcc.dg/tree-ssa/pr92734.c: New test.

From-SVN: r278925
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr92734.c [new file with mode: 0644]