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/112719] [14 Regression] ICE: in decompose, at wide-int.h:1049 with -O -msse4 and __builtin_popcountl() since r14-5557
Date: Tue, 28 Nov 2023 09:15:32 +0000	[thread overview]
Message-ID: <bug-112719-4-1Hm5NFz6KV@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-112719-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:03877e7eccd2734ca93a2d13aa2abf55e0aec923

commit r14-5900-g03877e7eccd2734ca93a2d13aa2abf55e0aec923
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Nov 28 10:14:55 2023 +0100

    match.pd: Fix popcount (X) + popcount (Y) simplification [PR112719]

    Since my PR112566 r14-5557 changes the following testcase ICEs, because
    .POPCOUNT (x) + .POPCOUNT (y) has a simplification attempted even when
    x and y have incompatible types (different precisions).
    Note, with _BitInt it can ICE already starting with r14-5435 and
    I think as a latent problem it exists for years, because IFN_POPCOUNT
    calls inherently can have different argument types and return type
    is always the same.
    The following patch fixes it by using widest_int during the analysis
    (which is where it was ICEing) and if it is optimizable, casting to
    the wider type so that bit_ior has matching argument types.

    2023-11-28  Jakub Jelinek  <jakub@redhat.com>

            PR tree-optimization/112719
            * match.pd (popcount (X) + popcount (Y) -> POPCOUNT (X | Y)): Deal
            with argument types with different precisions.

  parent reply	other threads:[~2023-11-28  9:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-27  6:54 [Bug target/112719] New: [14 Regression] ICE: in decompose, at wide-int.h:1049 with -O -msse4 and __builtin_popcountl() zsojka at seznam dot cz
2023-11-27  8:17 ` [Bug target/112719] " rguenth at gcc dot gnu.org
2023-11-27  9:01 ` [Bug target/112719] [14 Regression] ICE: in decompose, at wide-int.h:1049 with -O -msse4 and __builtin_popcountl() since r14-5557 jakub at gcc dot gnu.org
2023-11-27  9:49 ` [Bug tree-optimization/112719] " jakub at gcc dot gnu.org
2023-11-27 10:48 ` jakub at gcc dot gnu.org
2023-11-28  9:15 ` cvs-commit at gcc dot gnu.org [this message]
2023-11-28  9:16 ` cvs-commit at gcc dot gnu.org
2023-11-28  9:31 ` jakub 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-112719-4-1Hm5NFz6KV@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).