public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/107937] [13 Regression] ICE in find_var_cmp_const, at gimple-predicate-analysis.cc:257 since r13-4408-gb628cad9e093f7a3
Date: Thu, 01 Dec 2022 09:54:00 +0000	[thread overview]
Message-ID: <bug-107937-4-7oRMAeb7LP@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-107937-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107937

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

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

commit r13-4437-gabf05583dbc86a6667b63f5bda6ba57fe55a1b25
Author: Richard Biener <rguenther@suse.de>
Date:   Thu Dec 1 10:12:28 2022 +0100

    tree-optimization/107937 - uninit predicate simplification fixup

    The following changes the predicate representation to record the
    value of a predicate with an empty set of AND predicates.  That's
    necessary to properly represent the conservative fallback for the
    def vs use predicates.  Since simplification now can result in
    such an empty set this distinction becomes important and we need
    to check for this as we otherwise ICE.

            PR tree-optimization/107937
            * gimple-predicate-analysis.h (predicate::is_true): New.
            (predicate::is_false): Likewise.
            (predicate::empty_val): Likewise.
            (uninit_analysis::uninit_analysis): Properly initialize
            def_preds.
            * gimple-predicate-analysis.cc (simplify_1b): Indicate
            whether the chain became empty.
            (predicate::simplify): Release emptied chain before removing it.
            (predicate::normalize): Replace temporary object with assertion.
            (uninit_analysis::is_use_guarded): Deal with predicates
            that simplify to true/false.

            * gcc.dg/pr107937.c: New testcase.

  parent reply	other threads:[~2022-12-01  9:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-30 17:17 [Bug c/107937] New: ice in find_var_cmp_const, at gimple-predicate-analysis.cc:257 dcb314 at hotmail dot com
2022-11-30 17:19 ` [Bug tree-optimization/107937] [13 Regression] " pinskia at gcc dot gnu.org
2022-11-30 17:23 ` pinskia at gcc dot gnu.org
2022-11-30 17:26 ` pinskia at gcc dot gnu.org
2022-11-30 17:29 ` dcb314 at hotmail dot com
2022-11-30 17:33 ` pinskia at gcc dot gnu.org
2022-12-01  5:24 ` [Bug tree-optimization/107937] [13 Regression] ICE in find_var_cmp_const, at gimple-predicate-analysis.cc:257 since r13-4408-gb628cad9e093f7a3 marxin at gcc dot gnu.org
2022-12-01  5:28 ` marxin at gcc dot gnu.org
2022-12-01  7:34 ` rguenth at gcc dot gnu.org
2022-12-01  8:38 ` zhendong.su at inf dot ethz.ch
2022-12-01  9:54 ` cvs-commit at gcc dot gnu.org [this message]
2022-12-01 14:00 ` rguenth at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-107937-4-7oRMAeb7LP@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).