public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/101560] New: ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad
@ 2021-07-21 16:24 jamborm at gcc dot gnu.org
  2021-07-21 16:26 ` [Bug target/101560] [12 Regression] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jamborm at gcc dot gnu.org @ 2021-07-21 16:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101560
           Summary: ICE building 526.blender_r with -Ofast -flto
                    -march=znver2 since r12-1958-gedafb35bdad
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jamborm at gcc dot gnu.org
                CC: hjl at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux
            Target: x86_64-linux

When building SPEC 2017 FPrate benchmark 526.blender_r with -Ofast -g
-flto -march=znver2 -mtune=znver2 I see the following ICE:

blender/source/blender/blenloader/intern/readfile.c: In function 'do_versions':
blender/source/blender/blenloader/intern/readfile.c:7595:1: internal compiler
error: in lra_assign, at lra-assigns.c:1649
 7595 | }
      | ^
0xb77d20 lra_assign(bool&)
        /home/mjambor/gcc/mine/src/gcc/lra-assigns.c:1649
0xb724c4 lra(_IO_FILE*)
        /home/mjambor/gcc/mine/src/gcc/lra.c:2387
0xb2d369 do_reload
        /home/mjambor/gcc/mine/src/gcc/ira.c:5932
0xb2d369 execute
        /home/mjambor/gcc/mine/src/gcc/ira.c:6118
Please submit a full bug report...


Note that the assert is triggered only with checking, so release-build
compilers do not see it.

I have bisected it down to:

commit edafb35bdadf309ebb9d1eddc5549f9e1ad49c09
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jun 2 07:15:45 2021 -0700

    x86: Convert CONST_WIDE_INT/CONST_VECTOR to broadcast

    1. Update move expanders to convert the CONST_WIDE_INT and CONST_VECTOR
    operands to vector broadcast from an integer with AVX.
    2. Add ix86_gen_scratch_sse_rtx to return a scratch SSE register which
    won't increase stack alignment requirement and blocks transformation by
    the combine pass.
    [...rest of the commit message trimmed...]

At this point I do not plan to attempt to come up with a reduced
testcase.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/101560] [12 Regression] ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad
  2021-07-21 16:24 [Bug target/101560] New: ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad jamborm at gcc dot gnu.org
@ 2021-07-21 16:26 ` pinskia at gcc dot gnu.org
  2021-07-21 16:27 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-21 16:26 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE building 526.blender_r  |[12 Regression] ICE
                   |with -Ofast -flto           |building 526.blender_r with
                   |-march=znver2 since         |-Ofast -flto -march=znver2
                   |r12-1958-gedafb35bdad       |since r12-1958-gedafb35bdad
           Keywords|                            |ice-on-valid-code
   Target Milestone|---                         |12.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/101560] [12 Regression] ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad
  2021-07-21 16:24 [Bug target/101560] New: ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad jamborm at gcc dot gnu.org
  2021-07-21 16:26 ` [Bug target/101560] [12 Regression] " pinskia at gcc dot gnu.org
@ 2021-07-21 16:27 ` pinskia at gcc dot gnu.org
  2021-07-22 12:32 ` hjl.tools at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-21 16:27 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=101504

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Might be the same as PR 101504 even.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/101560] [12 Regression] ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad
  2021-07-21 16:24 [Bug target/101560] New: ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad jamborm at gcc dot gnu.org
  2021-07-21 16:26 ` [Bug target/101560] [12 Regression] " pinskia at gcc dot gnu.org
  2021-07-21 16:27 ` pinskia at gcc dot gnu.org
@ 2021-07-22 12:32 ` hjl.tools at gmail dot com
  2021-07-22 13:10 ` jamborm at gcc dot gnu.org
  2021-07-22 13:19 ` hjl.tools at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-22 12:32 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2021-07-22

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Please try

https://gcc.gnu.org/pipermail/gcc-patches/2021-July/575829.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/101560] [12 Regression] ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad
  2021-07-21 16:24 [Bug target/101560] New: ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad jamborm at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-07-22 12:32 ` hjl.tools at gmail dot com
@ 2021-07-22 13:10 ` jamborm at gcc dot gnu.org
  2021-07-22 13:19 ` hjl.tools at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: jamborm at gcc dot gnu.org @ 2021-07-22 13:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #2)
> Please try
> 
> https://gcc.gnu.org/pipermail/gcc-patches/2021-July/575829.html

I can confirm the patch avoids the ICE.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/101560] [12 Regression] ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad
  2021-07-21 16:24 [Bug target/101560] New: ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad jamborm at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-07-22 13:10 ` jamborm at gcc dot gnu.org
@ 2021-07-22 13:19 ` hjl.tools at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-22 13:19 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|WAITING                     |RESOLVED

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Dup.

*** This bug has been marked as a duplicate of bug 101504 ***

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-22 13:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21 16:24 [Bug target/101560] New: ICE building 526.blender_r with -Ofast -flto -march=znver2 since r12-1958-gedafb35bdad jamborm at gcc dot gnu.org
2021-07-21 16:26 ` [Bug target/101560] [12 Regression] " pinskia at gcc dot gnu.org
2021-07-21 16:27 ` pinskia at gcc dot gnu.org
2021-07-22 12:32 ` hjl.tools at gmail dot com
2021-07-22 13:10 ` jamborm at gcc dot gnu.org
2021-07-22 13:19 ` hjl.tools at gmail dot com

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).