public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2003] middle-end/101291 - set loop copy of versioned loop
@ 2021-07-05 10:52 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-07-05 10:52 UTC (permalink / raw)
  To: gcc-cvs

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

commit r12-2003-g38872c6c0db1b10b17d3913b277c499913208d0b
Author: Richard Biener <rguenther@suse.de>
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  <rguenther@suse.de>
    
            PR middle-end/101291
            * cfgloopmanip.c (loop_version): Set the loop copy of the
            versioned loop to the new loop.

Diff:
---
 gcc/cfgloopmanip.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c
index e6df28036c4..2af59fedc92 100644
--- a/gcc/cfgloopmanip.c
+++ b/gcc/cfgloopmanip.c
@@ -1731,6 +1731,7 @@ loop_version (class loop *loop,
 		   then_scale, else_scale);
 
   copy_loop_info (loop, nloop);
+  set_loop_copy (loop, nloop);
 
   /* loopify redirected latch_edge. Update its PENDING_STMTS.  */
   lv_flush_pending_stmts (latch_edge);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-05 10:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 10:52 [gcc r12-2003] middle-end/101291 - set loop copy of versioned loop Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).