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 debug/99830] [11 Regression] ICE: in lra_eliminate_regs_1, at lra-eliminations.c:659 with -O2 -fno-expensive-optimizations -fno-split-wide-types -g
Date: Tue, 20 Apr 2021 23:34:38 +0000	[thread overview]
Message-ID: <bug-99830-4-RiLLeOxbXi@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-99830-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #18 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:6bb1dccf0defbcf245b0804211e20be8624c1f40

commit r9-9445-g6bb1dccf0defbcf245b0804211e20be8624c1f40
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Apr 13 01:00:48 2021 +0200

    combine: Don't fold away side-effects in simplify_and_const_int_1 [PR99830]

    Here is an alternate patch for the PR99830 bug.
    As discussed on IRC and in the PR, the reason why a (clobber:TI (const_int
0))
    has been propagated into the debug insns is that it got optimized away
    during simplification from the i3 instruction pattern.

    And that happened because
    simplify_and_const_int_1 (SImode, varop, 255)
    with varop of
    (ashift:SI (subreg:SI (and:TI (clobber:TI (const_int 0 [0]))
                                  (const_int 255 [0xff])) 0)
               (const_int 16 [0x10]))
    was called and through nonzero_bits determined that (whatever << 16) & 255
    is const0_rtx.
    It is, but if there are side-effects in varop and such clobbers are
    considered as such, we shouldn't optimize those away.

    2021-04-13  Jakub Jelinek  <jakub@redhat.com>

            PR debug/99830
            * combine.c (simplify_and_const_int_1): Don't optimize varop
            away if it has side-effects.

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

    (cherry picked from commit 4ac7483ede91fef7cfd548ff6e30e46eeb9d95ae)

  parent reply	other threads:[~2021-04-20 23:34 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-30 14:11 [Bug rtl-optimization/99830] New: " zsojka at seznam dot cz
2021-03-30 16:14 ` [Bug rtl-optimization/99830] " acoplan at gcc dot gnu.org
2021-03-31  7:53 ` rguenth at gcc dot gnu.org
2021-04-08 13:21 ` rguenth at gcc dot gnu.org
2021-04-08 13:27 ` jakub at gcc dot gnu.org
2021-04-08 14:45 ` [Bug debug/99830] " jakub at gcc dot gnu.org
2021-04-09 12:29 ` segher at gcc dot gnu.org
2021-04-09 12:36 ` jakub at gcc dot gnu.org
2021-04-09 12:38 ` segher at gcc dot gnu.org
2021-04-09 13:27 ` jakub at gcc dot gnu.org
2021-04-09 14:23 ` jakub at gcc dot gnu.org
2021-04-09 17:09 ` segher at gcc dot gnu.org
2021-04-09 17:31 ` jakub at gcc dot gnu.org
2021-04-09 18:01 ` segher at gcc dot gnu.org
2021-04-09 19:10 ` jakub at gcc dot gnu.org
2021-04-09 19:10 ` jakub at gcc dot gnu.org
2021-04-09 21:29 ` segher at gcc dot gnu.org
2021-04-12 16:20 ` jakub at gcc dot gnu.org
2021-04-12 23:01 ` cvs-commit at gcc dot gnu.org
2021-04-12 23:03 ` jakub at gcc dot gnu.org
2021-04-20  9:46 ` cvs-commit at gcc dot gnu.org
2021-04-20 23:34 ` cvs-commit at gcc dot gnu.org [this message]
2021-04-22 16:52 ` cvs-commit 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-99830-4-RiLLeOxbXi@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).