public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/46036] New: [4.6 Regression] verify_ssa failed: definition in block 3 follows the use
@ 2010-10-15 14:12 rguenth at gcc dot gnu.org
  2010-10-15 14:13 ` [Bug tree-optimization/46036] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-15 14:12 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6 Regression] verify_ssa failed: definition in
                    block 3 follows the use
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rguenth@gcc.gnu.org


function no_of_edges(self) result(res)
      integer(kind=kind(1)) :: edge_bit_string
      integer(kind=kind(1)) :: res
      integer(kind=kind(1)) :: e
      do e = 0, 11
        if (.not. btest(edge_bit_string,e)) cycle
        res = res + 1
      end do
   end function

> ./f951 -quiet -O -ftree-vectorize -flto t.f90 
t.f90: In function 'no_of_edges_':
t.f90:1:0: error: definition in block 3 follows the use
for SSA_NAME: D.1536_19 in statement:
res_3 = [cond_expr] D.1536_19 ? res_12 : res_2;
t.f90:1:0: internal compiler error: verify_ssa failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

for some reason needs -flto to trigger.  if-conversion produces:

<bb 3>:
  # e_1 = PHI <0(2), e_14(4)>
  # res_2 = PHI <res_6(D)(2), res_3(4)>
  # ivtmp.2_17 = PHI <12(2), ivtmp.2_18(4)>
  D.1524_8 = edge_bit_string_7(D) >> e_1;
  D.1525_9 = D.1524_8 & 1;
  D.1526_10 = (logical(kind=4)) D.1525_9;
  res_12 = res_2 + 1;
  res_3 = [cond_expr] D.1536_19 ? res_12 : res_2;
  e_14 = e_1 + 1;
  ivtmp.2_18 = ivtmp.2_17 - 1;
  D.1536_19 = (<unnamed type>) D.1526_10;
  D.1537_20 = !D.1536_19;
  D.1538_21 = D.1536_19 || D.1537_20;
  if (ivtmp.2_18 == 0)
    goto <bb 5>;
  else
    goto <bb 4>;


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

* [Bug tree-optimization/46036] [4.6 Regression] verify_ssa failed: definition in block 3 follows the use
  2010-10-15 14:12 [Bug tree-optimization/46036] New: [4.6 Regression] verify_ssa failed: definition in block 3 follows the use rguenth at gcc dot gnu.org
@ 2010-10-15 14:13 ` rguenth at gcc dot gnu.org
  2010-10-26  1:03 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-15 14:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |lto
                 CC|                            |spop at gcc dot gnu.org
   Target Milestone|---                         |4.6.0

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-15 14:13:09 UTC ---
This breaks 465.tonto with LTO.


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

* [Bug tree-optimization/46036] [4.6 Regression] verify_ssa failed: definition in block 3 follows the use
  2010-10-15 14:12 [Bug tree-optimization/46036] New: [4.6 Regression] verify_ssa failed: definition in block 3 follows the use rguenth at gcc dot gnu.org
  2010-10-15 14:13 ` [Bug tree-optimization/46036] " rguenth at gcc dot gnu.org
@ 2010-10-26  1:03 ` jakub at gcc dot gnu.org
  2010-11-03 20:52 ` spop at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-10-26  1:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.26 01:03:32
                 CC|                            |jakub at gcc dot gnu.org
     Ever Confirmed|0                           |1


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

* [Bug tree-optimization/46036] [4.6 Regression] verify_ssa failed: definition in block 3 follows the use
  2010-10-15 14:12 [Bug tree-optimization/46036] New: [4.6 Regression] verify_ssa failed: definition in block 3 follows the use rguenth at gcc dot gnu.org
  2010-10-15 14:13 ` [Bug tree-optimization/46036] " rguenth at gcc dot gnu.org
  2010-10-26  1:03 ` jakub at gcc dot gnu.org
@ 2010-11-03 20:52 ` spop at gcc dot gnu.org
  2010-11-05 22:02 ` spop at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: spop at gcc dot gnu.org @ 2010-11-03 20:52 UTC (permalink / raw)
  To: gcc-bugs

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

Sebastian Pop <spop at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #2 from Sebastian Pop <spop at gcc dot gnu.org> 2010-11-03 20:52:18 UTC ---
Mine.


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

* [Bug tree-optimization/46036] [4.6 Regression] verify_ssa failed: definition in block 3 follows the use
  2010-10-15 14:12 [Bug tree-optimization/46036] New: [4.6 Regression] verify_ssa failed: definition in block 3 follows the use rguenth at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2010-11-03 20:52 ` spop at gcc dot gnu.org
@ 2010-11-05 22:02 ` spop at gcc dot gnu.org
  2010-11-09 19:23 ` spop at gcc dot gnu.org
  2010-11-09 19:24 ` spop at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: spop at gcc dot gnu.org @ 2010-11-05 22:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Sebastian Pop <spop at gcc dot gnu.org> 2010-11-05 22:01:34 UTC ---
Created attachment 22299
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22299
patch

Here is a patch that solves the problem.
Not tested yet.


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

* [Bug tree-optimization/46036] [4.6 Regression] verify_ssa failed: definition in block 3 follows the use
  2010-10-15 14:12 [Bug tree-optimization/46036] New: [4.6 Regression] verify_ssa failed: definition in block 3 follows the use rguenth at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2010-11-05 22:02 ` spop at gcc dot gnu.org
@ 2010-11-09 19:23 ` spop at gcc dot gnu.org
  2010-11-09 19:24 ` spop at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: spop at gcc dot gnu.org @ 2010-11-09 19:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Sebastian Pop <spop at gcc dot gnu.org> 2010-11-09 19:23:47 UTC ---
Author: spop
Date: Tue Nov  9 19:23:43 2010
New Revision: 166508

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166508
Log:
Fix PR46036.

2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>

    PR tree-optimization/46036
    * tree-if-conv.c (predicate_bbs): Call unshare_expr before
    add_to_dst_predicate_list.

    * gfortran.dg/lto/pr46036_0.f90: New.

Added:
    trunk/gcc/testsuite/gfortran.dg/lto/pr46036_0.f90
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-if-conv.c


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

* [Bug tree-optimization/46036] [4.6 Regression] verify_ssa failed: definition in block 3 follows the use
  2010-10-15 14:12 [Bug tree-optimization/46036] New: [4.6 Regression] verify_ssa failed: definition in block 3 follows the use rguenth at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2010-11-09 19:23 ` spop at gcc dot gnu.org
@ 2010-11-09 19:24 ` spop at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: spop at gcc dot gnu.org @ 2010-11-09 19:24 UTC (permalink / raw)
  To: gcc-bugs

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

Sebastian Pop <spop at gcc dot gnu.org> changed:

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

--- Comment #5 from Sebastian Pop <spop at gcc dot gnu.org> 2010-11-09 19:24:31 UTC ---
Fixed.


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

end of thread, other threads:[~2010-11-09 19:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-15 14:12 [Bug tree-optimization/46036] New: [4.6 Regression] verify_ssa failed: definition in block 3 follows the use rguenth at gcc dot gnu.org
2010-10-15 14:13 ` [Bug tree-optimization/46036] " rguenth at gcc dot gnu.org
2010-10-26  1:03 ` jakub at gcc dot gnu.org
2010-11-03 20:52 ` spop at gcc dot gnu.org
2010-11-05 22:02 ` spop at gcc dot gnu.org
2010-11-09 19:23 ` spop at gcc dot gnu.org
2010-11-09 19:24 ` spop 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).