tree-optimization/114151 - revert PR114074 fix
commite0e9499aeffdaca88f0f29334384aa5f710a81a4
authorRichard Biener <rguenther@suse.de>
Tue, 19 Mar 2024 11:24:08 +0000 (19 12:24 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 19 Mar 2024 12:11:42 +0000 (19 13:11 +0100)
treeda3c844037a24c5973a1745a22ebd066f95dff21
parent1f257714674cd8fd69db7367aecdd09b672d1db7
tree-optimization/114151 - revert PR114074 fix

The following reverts the chrec_fold_multiply fix and only keeps
handling of constant overflow which keeps the original testcase
fixed.  A better solution might involve ranger improvements or
tracking of assumptions during SCEV analysis similar to what niter
analysis does.

PR tree-optimization/114151
PR tree-optimization/114269
PR tree-optimization/114322
PR tree-optimization/114074
* tree-chrec.cc (chrec_fold_multiply): Restrict the use of
unsigned arithmetic when actual overflow on constant operands
is observed.

* gcc.dg/pr68317.c: Revert last change.
gcc/testsuite/gcc.dg/pr68317.c
gcc/tree-chrec.cc