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/102141] [12 Regression] ICE: with single element vector and the bswap pass at -O2 since r12-3072-gb320edc0c29c838b
Date: Wed, 01 Sep 2021 10:07:14 +0000	[thread overview]
Message-ID: <bug-102141-4-Mq3hBgClzn@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-102141-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #5 from CVS 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:45ff12512e568089a4c7b85b5322ab8019723cd9

commit r12-3280-g45ff12512e568089a4c7b85b5322ab8019723cd9
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Sep 1 12:06:25 2021 +0200

    bswap: Fix up bswap_view_convert handling [PR102141]

    bswap_view_convert is used twice in spots where gsi_insert_before is the
    right thing, but in the last one it wants to insert preparation stmts
    for the VIEW_CONVERT_EXPR emitted with gsi_insert_after, where at the
    gsi we still need to insert bswap_stmt and maybe mask_stmt whose lhs
    the preparation stmts will use.
    So, this patch adds a BEFORE argument to the function and emits the
    preparation statements before or after depending on that.

    2021-09-01  Jakub Jelinek  <jakub@redhat.com>

            PR tree-optimization/102141
            * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
            argument.  If false, emit stmts after gsi instead of before, and
            with GSI_NEW_STMT.
            (bswap_replace): Adjust callers.  When converting output of bswap,
            emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
            of before it.

            * gcc.dg/pr102141.c: New test.

  parent reply	other threads:[~2021-09-01 10:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-31  6:57 [Bug tree-optimization/102141] New: [12 Regression] ICE: verify_ssa failed during GIMPLE pass: bswap at -O2 zsojka at seznam dot cz
2021-08-31  7:04 ` [Bug tree-optimization/102141] " pinskia at gcc dot gnu.org
2021-08-31  7:06 ` [Bug tree-optimization/102141] [12 Regression] ICE: verify_ssa failed during GIMPLE pass: bswap at -O2 since r12-3072-gb320edc0c29c838b marxin at gcc dot gnu.org
2021-08-31  7:19 ` [Bug tree-optimization/102141] [12 Regression] ICE: with single element vector and the bswap pass " pinskia at gcc dot gnu.org
2021-08-31 10:42 ` jakub at gcc dot gnu.org
2021-09-01 10:07 ` cvs-commit at gcc dot gnu.org [this message]
2021-09-01 10:08 ` 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-102141-4-Mq3hBgClzn@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).