public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/64311] New: ICE: Max. number of generated reload insns per insn is achieved (90) with -fpic -march=corei7 for gcc.target/i386/avx512bw-vpbroadcast[bw]-1.c
@ 2014-12-15  8:46 ubizjak at gmail dot com
  2014-12-15  8:50 ` [Bug rtl-optimization/64311] " ubizjak at gmail dot com
  2015-01-24 17:11 ` dominiq at lps dot ens.fr
  0 siblings, 2 replies; 3+ messages in thread
From: ubizjak at gmail dot com @ 2014-12-15  8:46 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64311
           Summary: ICE: Max. number of generated reload insns per insn is
                    achieved (90) with -fpic -march=corei7 for
                    gcc.target/i386/avx512bw-vpbroadcast[bw]-1.c
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ubizjak at gmail dot com

As seen in [1], reproducible on x86_64-linux with "-mavx512bw -mavx512vl -O2
-fpic -m32 -march=corei7":

~/gcc-build/gcc/xgcc -B ~/gcc-build/gcc/ -mavx512bw -mavx512vl -O2 -fpic -m32
-march=corei7 -S avx512bw-vpbroadcastw-1.c  
avx512bw-vpbroadcastw-1.c: In function ‘avx512bw_test’:
avx512bw-vpbroadcastw-1.c:39:1: internal compiler error: Max. number of
generated reload insns per insn is achieved (90)

 }
 ^
0x9383d0 lra_constraints(bool)
        ../../gcc-svn/trunk/gcc/lra-constraints.c:4225
0x928301 lra(_IO_FILE*)
        ../../gcc-svn/trunk/gcc/lra.c:2277
0x8e6959 do_reload
        ../../gcc-svn/trunk/gcc/ira.c:5391
0x8e6959 execute
        ../../gcc-svn/trunk/gcc/ira.c:5561
Please submit a full bug report,

[1] https://gcc.gnu.org/ml/gcc-testresults/2014-12/msg01763.html
>From gcc-bugs-return-470679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 15 08:46:51 2014
Return-Path: <gcc-bugs-return-470679-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14498 invoked by alias); 15 Dec 2014 08:46:51 -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 14470 invoked by uid 48); 15 Dec 2014 08:46:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/64309] if (1 & (1 << n)) not simplified to if (n == 0)
Date: Mon, 15 Dec 2014 08:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
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: keywords bug_status cf_reconfirmed_on component everconfirmed
Message-ID: <bug-64309-4-5ozTknAxq8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64309-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64309-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: 2014-12/txt/msg01686.txt.bz2
Content-length: 883

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd309

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-12-15
          Component|rtl-optimization            |middle-end
     Ever confirmed|0                           |1

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

 (simplify
  (ne (bit_and (lshift integer_onep @0) integer_onep) integer_zerop)
  (eq @0 { build_zero_cst (TREE_TYPE (@0)); })

with eventually also covering if ((1 & (1<< n)) == 0) -> if (n & 1 == 0)

You can extend this to cover the other cases you mention.


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

* [Bug rtl-optimization/64311] ICE: Max. number of generated reload insns per insn is achieved (90) with -fpic -march=corei7 for gcc.target/i386/avx512bw-vpbroadcast[bw]-1.c
  2014-12-15  8:46 [Bug rtl-optimization/64311] New: ICE: Max. number of generated reload insns per insn is achieved (90) with -fpic -march=corei7 for gcc.target/i386/avx512bw-vpbroadcast[bw]-1.c ubizjak at gmail dot com
@ 2014-12-15  8:50 ` ubizjak at gmail dot com
  2015-01-24 17:11 ` dominiq at lps dot ens.fr
  1 sibling, 0 replies; 3+ messages in thread
From: ubizjak at gmail dot com @ 2014-12-15  8:50 UTC (permalink / raw)
  To: gcc-bugs

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |evstupac at gmail dot com,
                   |                            |kyukhin at gcc dot gnu.org,
                   |                            |tocarip at gcc dot gnu.org

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Add some CCs.
>From gcc-bugs-return-470681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 15 08:55:52 2014
Return-Path: <gcc-bugs-return-470681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19866 invoked by alias); 15 Dec 2014 08:55:52 -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 19840 invoked by uid 48); 15 Dec 2014 08:55:47 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/64308] Missed optimization: 64-bit divide used when 32-bit divide would work
Date: Mon, 15 Dec 2014 08:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
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:
Message-ID: <bug-64308-4-y1I70BIXAR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64308-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64308-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: 2014-12/txt/msg01688.txt.bz2
Content-length: 759

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd308

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Not sure if your analysis is correct, but value-range propagation computes

ret_4: VARYING
...
_12: [0, 4294967295]
_13: [0, 4294967295]
_14: [0, 18446744065119617025]
_15: [0, 4294967295]
_16: [0, +INF]

for

Folding statement: _12 = (long long unsigned int) ret_4;
Not folded
Folding statement: _13 = (long long unsigned int) b_1;
Not folded
Folding statement: _14 = _12 * _13;
Not folded
Folding statement: _15 = (long long unsigned int) m_6(D);
Not folded
Folding statement: _16 = _14 % _15;

so its analysis needs to be improved (didn't investigate exactly where it
fails, but IIRC modulo is not handled here because m may be zero).


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

* [Bug rtl-optimization/64311] ICE: Max. number of generated reload insns per insn is achieved (90) with -fpic -march=corei7 for gcc.target/i386/avx512bw-vpbroadcast[bw]-1.c
  2014-12-15  8:46 [Bug rtl-optimization/64311] New: ICE: Max. number of generated reload insns per insn is achieved (90) with -fpic -march=corei7 for gcc.target/i386/avx512bw-vpbroadcast[bw]-1.c ubizjak at gmail dot com
  2014-12-15  8:50 ` [Bug rtl-optimization/64311] " ubizjak at gmail dot com
@ 2015-01-24 17:11 ` dominiq at lps dot ens.fr
  1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-01-24 17:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Still present at r220081.


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

end of thread, other threads:[~2015-01-24 17:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-15  8:46 [Bug rtl-optimization/64311] New: ICE: Max. number of generated reload insns per insn is achieved (90) with -fpic -march=corei7 for gcc.target/i386/avx512bw-vpbroadcast[bw]-1.c ubizjak at gmail dot com
2014-12-15  8:50 ` [Bug rtl-optimization/64311] " ubizjak at gmail dot com
2015-01-24 17:11 ` dominiq at lps dot ens.fr

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