tree-optimization/97089 - fix bogus unsigned division replacement
authorRichard Biener <rguenther@suse.de>
Fri, 18 Sep 2020 07:22:57 +0000 (09:22 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 18 Sep 2020 07:22:57 +0000 (09:22 +0200)
commit0f6150a5d368fc30540dac31e29f1d6d40f207d3
tree4950cf039a69b990080203d23b75979879c42f14
parent080ddd8a81ea39e92542fa7d7e2d7d27ee741710
tree-optimization/97089 - fix bogus unsigned division replacement

This fixes bogus replacing of an unsigned (-x)/y division by
-(x/y).

2020-09-18  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97089
* tree-ssa-sccvn.c (visit_nary_op): Do not replace unsigned
divisions.
gcc/tree-ssa-sccvn.c