public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1446] Assert we have irreducible regions marked in the threader
@ 2021-06-15  8:29 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-06-15  8:29 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:b10f895f41dbe98f2a7d448b91d083a68792a6a0

commit r12-1446-gb10f895f41dbe98f2a7d448b91d083a68792a6a0
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Jun 15 10:27:47 2021 +0200

    Assert we have irreducible regions marked in the threader
    
    This adds an assert that would fire if any thread path registry
    user runs into the check that relies on such regions marked.
    
    2021-06-15  Richard Biener  <rguenther@suse.de>
    
            * tree-ssa-threadupdate.c
            (jump_thread_path_registry::mark_threaded_blocks): Assert we
            have marked irreducible regions.

Diff:
---
 gcc/tree-ssa-threadupdate.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c
index a86302be18e..f496dd3eb8c 100644
--- a/gcc/tree-ssa-threadupdate.c
+++ b/gcc/tree-ssa-threadupdate.c
@@ -2122,6 +2122,8 @@ jump_thread_path_registry::mark_threaded_blocks (bitmap threaded_blocks)
 	{
 	  if (e->aux)
 	    {
+	      gcc_assert (loops_state_satisfies_p
+			    (LOOPS_HAVE_MARKED_IRREDUCIBLE_REGIONS));
 	      vec<jump_thread_edge *> *path = THREAD_PATH (e);
 
 	      for (unsigned int i = 0, crossed_headers = 0;


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

only message in thread, other threads:[~2021-06-15  8:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15  8:29 [gcc r12-1446] Assert we have irreducible regions marked in the threader 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).