public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-10098] middle-end/101291 - set loop copy of versioned loop
@ 2021-09-06 10:18 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-09-06 10:18 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1a4075c0a43fff9fac9df91c3e83e3a1949b69ff
commit r10-10098-g1a4075c0a43fff9fac9df91c3e83e3a1949b69ff
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.
(cherry picked from commit 38872c6c0db1b10b17d3913b277c499913208d0b)
Diff:
---
gcc/cfgloopmanip.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c
index 73134a20e33..495e7a9e6b8 100644
--- a/gcc/cfgloopmanip.c
+++ b/gcc/cfgloopmanip.c
@@ -1734,6 +1734,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-09-06 10:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-06 10:18 [gcc r10-10098] 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).