From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1666) id D22ED3989004; Tue, 15 Jun 2021 08:29:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D22ED3989004 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Biener To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-1446] Assert we have irreducible regions marked in the threader X-Act-Checkin: gcc X-Git-Author: Richard Biener X-Git-Refname: refs/heads/master X-Git-Oldrev: 3fe54645374b1d7992555e97d906a5ba281d3c54 X-Git-Newrev: b10f895f41dbe98f2a7d448b91d083a68792a6a0 Message-Id: <20210615082947.D22ED3989004@sourceware.org> Date: Tue, 15 Jun 2021 08:29:47 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2021 08:29:47 -0000 https://gcc.gnu.org/g:b10f895f41dbe98f2a7d448b91d083a68792a6a0 commit r12-1446-gb10f895f41dbe98f2a7d448b91d083a68792a6a0 Author: Richard Biener 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 * 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 *path = THREAD_PATH (e); for (unsigned int i = 0, crossed_headers = 0;