[Bug tree-optimization/97812] [9 Regression] Wrong output when compiling the testcase with -O2 -flto since r9-4558-g476a31b55b5471262
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 2 12:21:42 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97812
--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:165ae61a9f7e484cd9cc1ad09f477ecad59c77e9
commit r9-9092-g165ae61a9f7e484cd9cc1ad09f477ecad59c77e9
Author: Richard Biener <rguenther@suse.de>
Date: Fri Nov 13 11:31:22 2020 +0100
tree-optimization/97812 - fix range query in VRP assert discovery
This makes sure to properly extend the input range before seeing
whether it fits the target.
2020-11-13 Richard Biener <rguenther@suse.de>
PR tree-optimization/97812
* tree-vrp.c (register_edge_assert_for_2): Extend the range
according to its sign before seeing whether it fits.
* gcc.dg/torture/pr97812.c: New testcase.
(cherry picked from commit dcfd302a79a5e2ea3bb16fc4fc45a5ee31cc0eab)
More information about the Gcc-bugs
mailing list