This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81388] [7/8 Regression] Incorrect code generation with -O1
- From: "amker at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Jul 2017 14:51:28 +0000
- Subject: [Bug tree-optimization/81388] [7/8 Regression] Incorrect code generation with -O1
- Auto-submitted: auto-generated
- References: <bug-81388-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81388
--- Comment #8 from amker at gcc dot gnu.org ---
My change @r238585 assumed that "pointer + 2 < pointer" must be folded before
calling to number_of_iterations_lt_to_ne. This is not true when pointer_plus
can overflow. I will look for either fix or revert. Sorry for the breakage.