public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/97897] New: ICE tree check: expected ssa_name, have integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638
@ 2020-11-18 16:39 gscfq@t-online.de
  2020-11-19  7:36 ` [Bug tree-optimization/97897] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2020-11-18 16:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97897
           Summary: ICE tree check: expected ssa_name, have integer_cst in
                    compute_optimized_partition_bases, at
                    tree-ssa-coalesce.c:1638
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Affects versions down to at least r5 :
(compiles with "(_Complex a)" instead)


$ cat z1.c
void h ();
void f () __attribute__ ((returns_twice));
void g (_Complex int a)
{
  f ();
  if (a != 0)
  {
    a = 0;
    h ();
  }
}


$ gcc-11-20201115 -c z1.c
during RTL pass: expand
z1.c: In function 'g':
z1.c:3:6: internal compiler error: tree check: expected ssa_name, have
integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638
    3 | void g (_Complex int a)
      |      ^
0x626df8 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/tree.c:9779
0xe4bb1f tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/tree.h:3314
0xe4bb1f compute_optimized_partition_bases
        ../../gcc/tree-ssa-coalesce.c:1638
0xe4bb1f coalesce_ssa_name(_var_map*)
        ../../gcc/tree-ssa-coalesce.c:1718
0xdde89b remove_ssa_form
        ../../gcc/tree-outof-ssa.c:1065
0xdde89b rewrite_out_of_ssa(ssaexpand*)
        ../../gcc/tree-outof-ssa.c:1323
0x80fa70 execute
        ../../gcc/cfgexpand.c:6407

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

* [Bug tree-optimization/97897] ICE tree check: expected ssa_name, have integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638
  2020-11-18 16:39 [Bug c/97897] New: ICE tree check: expected ssa_name, have integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638 gscfq@t-online.de
@ 2020-11-19  7:36 ` rguenth at gcc dot gnu.org
  2020-11-19  8:57 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-19  7:36 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |tree-optimization
   Last reconfirmed|                            |2020-11-19
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.  We may not have constants in abnormal edge PHI arguments.

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

* [Bug tree-optimization/97897] ICE tree check: expected ssa_name, have integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638
  2020-11-18 16:39 [Bug c/97897] New: ICE tree check: expected ssa_name, have integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638 gscfq@t-online.de
  2020-11-19  7:36 ` [Bug tree-optimization/97897] " rguenth at gcc dot gnu.org
@ 2020-11-19  8:57 ` cvs-commit at gcc dot gnu.org
  2020-11-19  9:00 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-11-19  8:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:0d8290959ecf2c5f1dd062e57782b5e91be0f8f6

commit r11-5156-g0d8290959ecf2c5f1dd062e57782b5e91be0f8f6
Author: Richard Biener <rguenther@suse.de>
Date:   Thu Nov 19 09:06:50 2020 +0100

    tree-optimization/97897 - complex lowering on abnormal edges

    This fixes complex lowering to not put constants into abnormal
    edge PHI values by making sure abnormally used SSA names are
    VARYING in its propagation lattice.

    2020-11-19  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/97897
            * tree-complex.c (complex_propagate::visit_stmt): Make sure
            abnormally used SSA names are VARYING.
            (complex_propagate::visit_phi): Likewise.
            * tree-ssa.c (verify_phi_args): Verify PHI arguments on abnormal
            edges are SSA names.

            * gcc.dg/pr97897.c: New testcase.

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

* [Bug tree-optimization/97897] ICE tree check: expected ssa_name, have integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638
  2020-11-18 16:39 [Bug c/97897] New: ICE tree check: expected ssa_name, have integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638 gscfq@t-online.de
  2020-11-19  7:36 ` [Bug tree-optimization/97897] " rguenth at gcc dot gnu.org
  2020-11-19  8:57 ` cvs-commit at gcc dot gnu.org
@ 2020-11-19  9:00 ` rguenth at gcc dot gnu.org
  2021-03-03 10:36 ` cvs-commit at gcc dot gnu.org
  2021-03-03 10:36 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-19  9:00 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |11.0

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar.

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

* [Bug tree-optimization/97897] ICE tree check: expected ssa_name, have integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638
  2020-11-18 16:39 [Bug c/97897] New: ICE tree check: expected ssa_name, have integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2020-11-19  9:00 ` rguenth at gcc dot gnu.org
@ 2021-03-03 10:36 ` cvs-commit at gcc dot gnu.org
  2021-03-03 10:36 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-03 10:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:9272936ac5fac472a3690145572afa6ed19eaa8e

commit r10-9405-g9272936ac5fac472a3690145572afa6ed19eaa8e
Author: Richard Biener <rguenther@suse.de>
Date:   Thu Nov 19 09:06:50 2020 +0100

    tree-optimization/97897 - complex lowering on abnormal edges

    This fixes complex lowering to not put constants into abnormal
    edge PHI values by making sure abnormally used SSA names are
    VARYING in its propagation lattice.

    2020-11-19  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/97897
            * tree-complex.c (complex_propagate::visit_stmt): Make sure
            abnormally used SSA names are VARYING.
            (complex_propagate::visit_phi): Likewise.

            * gcc.dg/pr97897.c: New testcase.

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

* [Bug tree-optimization/97897] ICE tree check: expected ssa_name, have integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638
  2020-11-18 16:39 [Bug c/97897] New: ICE tree check: expected ssa_name, have integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2021-03-03 10:36 ` cvs-commit at gcc dot gnu.org
@ 2021-03-03 10:36 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-03-03 10:36 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |10.2.1
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.  Not planning to backport further.

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

end of thread, other threads:[~2021-03-03 10:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-18 16:39 [Bug c/97897] New: ICE tree check: expected ssa_name, have integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638 gscfq@t-online.de
2020-11-19  7:36 ` [Bug tree-optimization/97897] " rguenth at gcc dot gnu.org
2020-11-19  8:57 ` cvs-commit at gcc dot gnu.org
2020-11-19  9:00 ` rguenth at gcc dot gnu.org
2021-03-03 10:36 ` cvs-commit at gcc dot gnu.org
2021-03-03 10:36 ` rguenth 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).