[Bug tree-optimization/101291] [10/11/12 Regression] turns infinite loop into finite

2021-07-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101291

--- Comment #10 from CVS Commits  ---
The master branch has been updated by Richard Biener :

https://gcc.gnu.org/g:38872c6c0db1b10b17d3913b277c499913208d0b

commit r12-2003-g38872c6c0db1b10b17d3913b277c499913208d0b
Author: Richard Biener 
Date:   Mon Jul 5 11:53:07 2021 +0200

middle-end/101291 - set loop copy of versioned loop

This fixes the vectorizer loop versioning code failing to clear
niter related info on the scalar loop as it assumed get_loop_copy
would work even for the outermost loop.  The patch makes that
assumption hold by adjusting the loop versioning code.

2021-07-05  Richard Biener  

PR middle-end/101291
* cfgloopmanip.c (loop_version): Set the loop copy of the
versioned loop to the new loop.

[Bug tree-optimization/101291] [10/11/12 Regression] turns infinite loop into finite

2021-07-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101291

Richard Biener  changed:

   What|Removed |Added

Summary|turns infinite loop into|[10/11/12 Regression] turns
   |finite  |infinite loop into finite
   Target Milestone|--- |10.4
 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |rguenth at gcc dot 
gnu.org
   Priority|P3  |P2

--- Comment #9 from Richard Biener  ---
Testing a patch.  No testcase, not sure how to test for "infinite loop".