public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/101148] New: [12 Regression] ranger compile-tme hog when building 527.cam4_r
@ 2021-06-21 10:36 rguenth at gcc dot gnu.org
  2021-06-21 10:37 ` [Bug tree-optimization/101148] " rguenth at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-21 10:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101148
           Summary: [12 Regression] ranger compile-tme hog when building
                    527.cam4_r
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

Building 527.cam4_r with -march=cascadelake -Ofast -funroll-loops -flto -g
-mfpmath=sse results in one ltrans partitioning never finishing compile,
not completing

Run till exit from #0  0x00000000016f620c in ranger_cache::propagate_cache (
    this=this@entry=0x7fffffffd110, name=name@entry=0x7ffff6424f30)
    at /home/rguenther/src/trunk/gcc/gimple-range-cache.cc:1027

called ultimatively from gimple-ssa-warn-restrict.c

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

* [Bug tree-optimization/101148] [12 Regression] ranger compile-tme hog when building 527.cam4_r
  2021-06-21 10:36 [Bug tree-optimization/101148] New: [12 Regression] ranger compile-tme hog when building 527.cam4_r rguenth at gcc dot gnu.org
@ 2021-06-21 10:37 ` rguenth at gcc dot gnu.org
  2021-06-21 10:56 ` crazylht at gmail dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-21 10:37 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |compile-time-hog
   Target Milestone|---                         |12.0
                 CC|                            |crazylht at gmail dot com

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I did not verify whether this occurs with GCC 11 as well.

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

* [Bug tree-optimization/101148] [12 Regression] ranger compile-tme hog when building 527.cam4_r
  2021-06-21 10:36 [Bug tree-optimization/101148] New: [12 Regression] ranger compile-tme hog when building 527.cam4_r rguenth at gcc dot gnu.org
  2021-06-21 10:37 ` [Bug tree-optimization/101148] " rguenth at gcc dot gnu.org
@ 2021-06-21 10:56 ` crazylht at gmail dot com
  2021-06-21 11:07 ` marxin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: crazylht at gmail dot com @ 2021-06-21 10:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Hongtao.liu <crazylht at gmail dot com> ---
GCC11 is ok, so is GCC20210603. I've checked that GCC20210610, GCC202010616,
GCC20210621 all have this problem.

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

* [Bug tree-optimization/101148] [12 Regression] ranger compile-tme hog when building 527.cam4_r
  2021-06-21 10:36 [Bug tree-optimization/101148] New: [12 Regression] ranger compile-tme hog when building 527.cam4_r rguenth at gcc dot gnu.org
  2021-06-21 10:37 ` [Bug tree-optimization/101148] " rguenth at gcc dot gnu.org
  2021-06-21 10:56 ` crazylht at gmail dot com
@ 2021-06-21 11:07 ` marxin at gcc dot gnu.org
  2021-06-21 13:55 ` marxin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-06-21 11:07 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-06-21
     Ever confirmed|0                           |1
                 CC|                            |marxin at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
I'm going to reduce a test-case.

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

* [Bug tree-optimization/101148] [12 Regression] ranger compile-tme hog when building 527.cam4_r
  2021-06-21 10:36 [Bug tree-optimization/101148] New: [12 Regression] ranger compile-tme hog when building 527.cam4_r rguenth at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-06-21 11:07 ` marxin at gcc dot gnu.org
@ 2021-06-21 13:55 ` marxin at gcc dot gnu.org
  2021-06-21 15:03 ` amacleod at redhat dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-06-21 13:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Hm, I ended up with quite some files:

---
/home/marxin/Programming/cpu2017/benchspec/CPU/527.cam4_r/build/build_peak_gcc-m64.0000/FILES
---
/home/marxin/Programming/cpu2017/benchspec/CPU/527.cam4_r/build/build_peak_gcc-m64.0000/cldwat.fppized.o
/home/marxin/Programming/cpu2017/benchspec/CPU/527.cam4_r/build/build_peak_gcc-m64.0000/zm_conv.fppized.o
/home/marxin/Programming/cpu2017/benchspec/CPU/527.cam4_r/build/build_peak_gcc-m64.0000/convect_shallow.fppized.o
/home/marxin/Programming/cpu2017/benchspec/CPU/527.cam4_r/build/build_peak_gcc-m64.0000/stratiform.fppized.o
/home/marxin/Programming/cpu2017/benchspec/CPU/527.cam4_r/build/build_peak_gcc-m64.0000/physpkg.fppized.o
/home/marxin/Programming/cpu2017/benchspec/CPU/527.cam4_r/build/build_peak_gcc-m64.0000/cam_comp.fppized.o
/home/marxin/Programming/cpu2017/benchspec/CPU/527.cam4_r/build/build_peak_gcc-m64.0000/atm_comp_mct.fppized.o
/home/marxin/Programming/cpu2017/benchspec/CPU/527.cam4_r/build/build_peak_gcc-m64.0000/ccsm_comp_mod.fppized.o
/home/marxin/Programming/cpu2017/benchspec/CPU/527.cam4_r/build/build_peak_gcc-m64.0000/ccsm_driver.fppized.o
/home/marxin/Programming/cpu2017/benchspec/CPU/527.cam4_r/build/build_peak_gcc-m64.0000/tphysbc.fppized.o

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

* [Bug tree-optimization/101148] [12 Regression] ranger compile-tme hog when building 527.cam4_r
  2021-06-21 10:36 [Bug tree-optimization/101148] New: [12 Regression] ranger compile-tme hog when building 527.cam4_r rguenth at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-06-21 13:55 ` marxin at gcc dot gnu.org
@ 2021-06-21 15:03 ` amacleod at redhat dot com
  2021-06-22  5:06 ` marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: amacleod at redhat dot com @ 2021-06-21 15:03 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Macleod <amacleod at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amacleod at redhat dot com

--- Comment #5 from Andrew Macleod <amacleod at redhat dot com> ---
Any one file demonstrating it should be fine... as long as I can reproduce it
large/gigantic is OK.

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

* [Bug tree-optimization/101148] [12 Regression] ranger compile-tme hog when building 527.cam4_r
  2021-06-21 10:36 [Bug tree-optimization/101148] New: [12 Regression] ranger compile-tme hog when building 527.cam4_r rguenth at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-06-21 15:03 ` amacleod at redhat dot com
@ 2021-06-22  5:06 ` marxin at gcc dot gnu.org
  2021-06-23 14:26 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-06-22  5:06 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

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

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
I'm going to attach one another yarpgen test-case for PR101014.
I hope it's likely the same issue as this one.

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

* [Bug tree-optimization/101148] [12 Regression] ranger compile-tme hog when building 527.cam4_r
  2021-06-21 10:36 [Bug tree-optimization/101148] New: [12 Regression] ranger compile-tme hog when building 527.cam4_r rguenth at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-06-22  5:06 ` marxin at gcc dot gnu.org
@ 2021-06-23 14:26 ` cvs-commit at gcc dot gnu.org
  2021-06-23 14:29 ` amacleod at redhat dot com
  2021-07-14 21:58 ` cvs-commit at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-23 14:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andrew Macleod <amacleod@gcc.gnu.org>:

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

commit r12-1750-ga03e944e92ee51ae583382079d4739b64bd93b35
Author: Andrew MacLeod <amacleod@redhat.com>
Date:   Tue Jun 22 17:46:05 2021 -0400

    Do not continue propagating values which cannot be set properly.

    If the on-entry cache cannot properly represent a range, do not continue
    trying to propagate it.

            PR tree-optimization/101148
            PR tree-optimization/101014
            * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
            (ranger_cache::~ranger_cache): Adjust.
            (ranger_cache::block_range): Check if propagation disallowed.
            (ranger_cache::propagate_cache): Disallow propagation if new value
            can't be stored properly.
            * gimple-range-cache.h (ranger_cache::m_propfail): New member.

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

* [Bug tree-optimization/101148] [12 Regression] ranger compile-tme hog when building 527.cam4_r
  2021-06-21 10:36 [Bug tree-optimization/101148] New: [12 Regression] ranger compile-tme hog when building 527.cam4_r rguenth at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2021-06-23 14:26 ` cvs-commit at gcc dot gnu.org
@ 2021-06-23 14:29 ` amacleod at redhat dot com
  2021-07-14 21:58 ` cvs-commit at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: amacleod at redhat dot com @ 2021-06-23 14:29 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Macleod <amacleod at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #8 from Andrew Macleod <amacleod at redhat dot com> ---
Hopefully this closes it.  The final patch is slightly different than the
proposed one in 101014, as it had to change the propagation engine slightly as
well.

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

* [Bug tree-optimization/101148] [12 Regression] ranger compile-tme hog when building 527.cam4_r
  2021-06-21 10:36 [Bug tree-optimization/101148] New: [12 Regression] ranger compile-tme hog when building 527.cam4_r rguenth at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2021-06-23 14:29 ` amacleod at redhat dot com
@ 2021-07-14 21:58 ` cvs-commit at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-07-14 21:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Andrew Macleod
<amacleod@gcc.gnu.org>:

https://gcc.gnu.org/g:85c22c517e9571d1f0f487fd708fbb01f36f172a

commit r11-8750-g85c22c517e9571d1f0f487fd708fbb01f36f172a
Author: Andrew MacLeod <amacleod@redhat.com>
Date:   Tue Jun 22 17:46:05 2021 -0400

    Do not continue propagating values which cannot be set properly.

    If the on-entry cache cannot properly represent a range, do not continue
    trying to propagate it.

            PR tree-optimization/101148
            PR tree-optimization/101014
            * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
            (ranger_cache::~ranger_cache): Adjust.
            (ranger_cache::block_range): Check if propagation disallowed.
            (ranger_cache::propagate_cache): Disallow propagation if new value
            can't be stored properly.
            * gimple-range-cache.h (ranger_cache::m_propfail): New member.

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

end of thread, other threads:[~2021-07-14 21:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-21 10:36 [Bug tree-optimization/101148] New: [12 Regression] ranger compile-tme hog when building 527.cam4_r rguenth at gcc dot gnu.org
2021-06-21 10:37 ` [Bug tree-optimization/101148] " rguenth at gcc dot gnu.org
2021-06-21 10:56 ` crazylht at gmail dot com
2021-06-21 11:07 ` marxin at gcc dot gnu.org
2021-06-21 13:55 ` marxin at gcc dot gnu.org
2021-06-21 15:03 ` amacleod at redhat dot com
2021-06-22  5:06 ` marxin at gcc dot gnu.org
2021-06-23 14:26 ` cvs-commit at gcc dot gnu.org
2021-06-23 14:29 ` amacleod at redhat dot com
2021-07-14 21:58 ` cvs-commit at gcc dot gnu.org

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