public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/57676] New: ICE: Maximum number of LRA constraint passes is achieved (30)
@ 2013-06-22 15:38 antoine.balestrat at gmail dot com
  2013-06-24 10:50 ` [Bug rtl-optimization/57676] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: antoine.balestrat at gmail dot com @ 2013-06-22 15:38 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 3478 bytes --]

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57676

            Bug ID: 57676
           Summary: ICE: Maximum number of LRA constraint passes is
                    achieved (30)
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoine.balestrat at gmail dot com

Using GCC 4.9.0 as of 20130622 :

$ cat lra.c
int a, b, c;

void f(p1)
{
    for(;;)
    {
        if(p1 ? : (c /= 0))
        {
            int d;

            for(; d; d++)
            {
                for(b = 0; b < 4; b++)
                    p1 /= p1;
lbl:
                while(a);
            }
        }

        if((c &= 1))
            goto lbl;
    }
}

$ xgcc -w -O2 -funroll-loops lra.c
lra.c: In function ‘f’:
lra.c:23:1: internal compiler error: Maximum number of LRA constraint passes is
achieved (30)

 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-424845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jun 22 16:40:06 2013
Return-Path: <gcc-bugs-return-424845-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8904 invoked by alias); 22 Jun 2013 16:40:06 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8833 invoked by uid 48); 22 Jun 2013 16:39:58 -0000
From: "schlaffi at users dot sourceforge.net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/57674] wrong distribution for  std::binomial_distribution::operator()(g,param)
Date: Sat, 22 Jun 2013 16:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: lno
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schlaffi at users dot sourceforge.net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-57674-4-MTMouK9Scy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57674-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57674-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-06/txt/msg01224.txt.bz2
Content-length: 466

http://gcc.gnu.org/bugzilla/show_bug.cgi?idW674

--- Comment #2 from schlaffi at users dot sourceforge.net ---
Created attachment 30338
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id0338&actioníit
corrected version of the example file

sorry, forgot one line, the output should be

distribution 1: p = 0.8, f = 0.798828
distribution 2: p = 0.3, f = 0.206055

(bad) vs.

distribution 1: p = 0.8, f = 0.793945
distribution 2: p = 0.3, f = 0.308594

(good)


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

* [Bug rtl-optimization/57676] [4.8/4.9 Regression] ICE: Maximum number of LRA constraint passes is achieved (30)
  2013-06-22 15:38 [Bug rtl-optimization/57676] New: ICE: Maximum number of LRA constraint passes is achieved (30) antoine.balestrat at gmail dot com
@ 2013-06-24 10:50 ` rguenth at gcc dot gnu.org
  2013-06-27 16:41 ` vmakarov at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-06-24 10:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57676

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*, i?86-*-*
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |ra
   Last reconfirmed|                            |2013-06-24
                 CC|                            |vmakarov at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|ICE: Maximum number of LRA  |[4.8/4.9 Regression] ICE:
                   |constraint passes is        |Maximum number of LRA
                   |achieved (30)               |constraint passes is
                   |                            |achieved (30)
   Target Milestone|---                         |4.8.2

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.


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

* [Bug rtl-optimization/57676] [4.8/4.9 Regression] ICE: Maximum number of LRA constraint passes is achieved (30)
  2013-06-22 15:38 [Bug rtl-optimization/57676] New: ICE: Maximum number of LRA constraint passes is achieved (30) antoine.balestrat at gmail dot com
  2013-06-24 10:50 ` [Bug rtl-optimization/57676] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
@ 2013-06-27 16:41 ` vmakarov at gcc dot gnu.org
  2013-10-16  9:51 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2013-06-27 16:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57676

--- Comment #2 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
That is a pretty interesting test case.  Roughly speaking, we have chains of
divmodsi4 insns:

p1 / p2
...
p3 / p1

P1 (and many others) gets AX.  But it is necessary for P3 in the second insn. 
So on each LRA pass, there is a generation of reloads for one pseudo as P1. 
For these test case, LRA needs 36 passes (on each pass only 2 insns are
processed).  The current max number of passes is 30.

The simplest solution is to increase the max number of passes (and I probably
do it as the first solution).  But it is not the best solution as we don't know
how long the insn chain can be.  We need something smarter but currently I have
no ideas how to do it for any length of such insn chain.


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

* [Bug rtl-optimization/57676] [4.8/4.9 Regression] ICE: Maximum number of LRA constraint passes is achieved (30)
  2013-06-22 15:38 [Bug rtl-optimization/57676] New: ICE: Maximum number of LRA constraint passes is achieved (30) antoine.balestrat at gmail dot com
  2013-06-24 10:50 ` [Bug rtl-optimization/57676] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
  2013-06-27 16:41 ` vmakarov at gcc dot gnu.org
@ 2013-10-16  9:51 ` jakub at gcc dot gnu.org
  2013-10-30 13:01 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-10-16  9:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57676

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.2                       |4.8.3

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.2 has been released.


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

* [Bug rtl-optimization/57676] [4.8/4.9 Regression] ICE: Maximum number of LRA constraint passes is achieved (30)
  2013-06-22 15:38 [Bug rtl-optimization/57676] New: ICE: Maximum number of LRA constraint passes is achieved (30) antoine.balestrat at gmail dot com
                   ` (2 preceding siblings ...)
  2013-10-16  9:51 ` jakub at gcc dot gnu.org
@ 2013-10-30 13:01 ` rguenth at gcc dot gnu.org
  2014-05-22  9:07 ` [Bug rtl-optimization/57676] [4.8/4.9/4.10 " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-10-30 13:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57676

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
I wonder if there is an algorithm to fall back to that doesn't require
iteration.
Or, if not, if we can instead check if there was progress during the last
iteration (interpreting the limit as a way to check whether we'll iterate
indefinitely).


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

* [Bug rtl-optimization/57676] [4.8/4.9/4.10 Regression] ICE: Maximum number of LRA constraint passes is achieved (30)
  2013-06-22 15:38 [Bug rtl-optimization/57676] New: ICE: Maximum number of LRA constraint passes is achieved (30) antoine.balestrat at gmail dot com
                   ` (3 preceding siblings ...)
  2013-10-30 13:01 ` rguenth at gcc dot gnu.org
@ 2014-05-22  9:07 ` rguenth at gcc dot gnu.org
  2014-12-19 13:34 ` [Bug rtl-optimization/57676] [4.8/4.9/5 " jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-05-22  9:07 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.3                       |4.8.4

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 4.8.3 is being released, adjusting target milestone.


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

* [Bug rtl-optimization/57676] [4.8/4.9/5 Regression] ICE: Maximum number of LRA constraint passes is achieved (30)
  2013-06-22 15:38 [Bug rtl-optimization/57676] New: ICE: Maximum number of LRA constraint passes is achieved (30) antoine.balestrat at gmail dot com
                   ` (4 preceding siblings ...)
  2014-05-22  9:07 ` [Bug rtl-optimization/57676] [4.8/4.9/4.10 " rguenth at gcc dot gnu.org
@ 2014-12-19 13:34 ` jakub at gcc dot gnu.org
  2015-06-23  8:28 ` [Bug rtl-optimization/57676] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-12-19 13:34 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.4                       |4.8.5

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.4 has been released.


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

* [Bug rtl-optimization/57676] [4.8/4.9/5/6 Regression] ICE: Maximum number of LRA constraint passes is achieved (30)
  2013-06-22 15:38 [Bug rtl-optimization/57676] New: ICE: Maximum number of LRA constraint passes is achieved (30) antoine.balestrat at gmail dot com
                   ` (5 preceding siblings ...)
  2014-12-19 13:34 ` [Bug rtl-optimization/57676] [4.8/4.9/5 " jakub at gcc dot gnu.org
@ 2015-06-23  8:28 ` rguenth at gcc dot gnu.org
  2015-06-26 20:02 ` [Bug rtl-optimization/57676] [4.9/5/6 " jakub at gcc dot gnu.org
  2015-06-26 20:32 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-23  8:28 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.5                       |4.9.3

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
The gcc-4_8-branch is being closed, re-targeting regressions to 4.9.3.


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

* [Bug rtl-optimization/57676] [4.9/5/6 Regression] ICE: Maximum number of LRA constraint passes is achieved (30)
  2013-06-22 15:38 [Bug rtl-optimization/57676] New: ICE: Maximum number of LRA constraint passes is achieved (30) antoine.balestrat at gmail dot com
                   ` (6 preceding siblings ...)
  2015-06-23  8:28 ` [Bug rtl-optimization/57676] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
@ 2015-06-26 20:02 ` jakub at gcc dot gnu.org
  2015-06-26 20:32 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.3 has been released.


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

* [Bug rtl-optimization/57676] [4.9/5/6 Regression] ICE: Maximum number of LRA constraint passes is achieved (30)
  2013-06-22 15:38 [Bug rtl-optimization/57676] New: ICE: Maximum number of LRA constraint passes is achieved (30) antoine.balestrat at gmail dot com
                   ` (7 preceding siblings ...)
  2015-06-26 20:02 ` [Bug rtl-optimization/57676] [4.9/5/6 " jakub at gcc dot gnu.org
@ 2015-06-26 20:32 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:32 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.3                       |4.9.4


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

end of thread, other threads:[~2015-06-26 20:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-22 15:38 [Bug rtl-optimization/57676] New: ICE: Maximum number of LRA constraint passes is achieved (30) antoine.balestrat at gmail dot com
2013-06-24 10:50 ` [Bug rtl-optimization/57676] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
2013-06-27 16:41 ` vmakarov at gcc dot gnu.org
2013-10-16  9:51 ` jakub at gcc dot gnu.org
2013-10-30 13:01 ` rguenth at gcc dot gnu.org
2014-05-22  9:07 ` [Bug rtl-optimization/57676] [4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-12-19 13:34 ` [Bug rtl-optimization/57676] [4.8/4.9/5 " jakub at gcc dot gnu.org
2015-06-23  8:28 ` [Bug rtl-optimization/57676] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 20:02 ` [Bug rtl-optimization/57676] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:32 ` jakub 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).