]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/83517 (Missed optimization in math expression: (x+x)/x == 2)
authorRichard Biener <rguenther@suse.de>
Mon, 8 Jan 2018 08:16:19 +0000 (08:16 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 8 Jan 2018 08:16:19 +0000 (08:16 +0000)
commit55d84e61f3e929af53e1c29321c5fc031f071d13
tree4c29b976efb959422cb385359bf2cdc7c9e26d54
parent2af5fc623507d92326ae8b4203742722baafb865
re PR tree-optimization/83517 (Missed optimization in math expression: (x+x)/x == 2)

2018-01-08  Richard Biener  <rguenther@suse.de>

PR middle-end/83517
* match.pd ((t * 2) / 2) -> t): Add missing :c.

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

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