re PR tree-optimization/92712 (Performance regression with assumed values)
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 2 Dec 2019 08:51:49 +0000 (09:51 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 2 Dec 2019 08:51:49 +0000 (09:51 +0100)
commita213ab38560f0b95ec318b2a4795e66cc0518848
tree39451dd44a61601d97dcf6462ceede232af61ca9
parent9b14fc3326e087975653b1af8ac54114041cde51
re PR tree-optimization/92712 (Performance regression with assumed values)

PR tree-optimization/92712
* match.pd ((A * B) +- A -> (B +- 1) * A,
A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
even when we don't know anything about range of A, but do know
something about range of B and the simplification won't introduce
new UB.

* gcc.dg/tree-ssa/pr92712-1.c: New test.
* gcc.dg/tree-ssa/pr92712-2.c: New test.
* gcc.dg/tree-ssa/pr92712-3.c: New test.
* gfortran.dg/loop_versioning_1.f90: Adjust expected number of
likely to be innermost dimension messages.
* gfortran.dg/loop_versioning_10.f90: Likewise.
* gfortran.dg/loop_versioning_6.f90: Likewise.

From-SVN: r278894
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr92712-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr92712-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr92712-3.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/loop_versioning_1.f90
gcc/testsuite/gfortran.dg/loop_versioning_10.f90
gcc/testsuite/gfortran.dg/loop_versioning_6.f90