re PR tree-optimization/89518 (missed optimisation for array address calculations)
authorRichard Biener <rguenther@suse.de>
Fri, 3 May 2019 10:46:13 +0000 (10:46 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 3 May 2019 10:46:13 +0000 (10:46 +0000)
commit839d0860cf808e7457a5e57d745830023d57998b
tree89f7e25d2d74e6ef3f0163d96cf145bb885ade18
parenta4f9edf36c8ceebac5c34d6d913871bf1c0f5190
re PR tree-optimization/89518 (missed optimisation for array address calculations)

2019-05-03  Richard Biener  <rguenther@suse.de>

PR middle-end/89518
* match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.

* gcc.dg/pr89518.c: New testcase.

From-SVN: r270846
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr89518.c [new file with mode: 0644]