public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/97228] New: [11 regression] New ICEs on arm since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36
@ 2020-09-28 13:09 clyon at gcc dot gnu.org
  2020-09-28 13:10 ` [Bug tree-optimization/97228] " clyon at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: clyon at gcc dot gnu.org @ 2020-09-28 13:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97228
           Summary: [11 regression] New ICEs on arm since r11-3426
                    g:10843f8303509fcba880c6c05c08e4b4ccd24f36
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: clyon at gcc dot gnu.org
  Target Milestone: ---

Since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36, I have noticed
several regressions on arm, for instance:
--target arm-none-linux-gnueabihf
--with-mode arm
--with-cpu cortex-a9
--with-fpu neon-fp16

FAIL: gcc.dg/tree-ssa/ifc-cd.c (internal compiler error)
FAIL: gcc.dg/vect/pr59591-1.c (internal compiler error)
FAIL: gcc.dg/vect/pr59591-1.c -flto -ffat-lto-objects (internal compiler error)
FAIL: gcc.dg/vect/slp-cond-5.c (internal compiler error)
FAIL: gcc.dg/vect/slp-cond-5.c -flto -ffat-lto-objects (internal compiler
error)
FAIL: gcc.dg/vect/vect-23.c (internal compiler error)
FAIL: gcc.dg/vect/vect-23.c -flto -ffat-lto-objects (internal compiler error)
FAIL: gcc.dg/vect/vect-cond-reduc-6.c (internal compiler error)
FAIL: gcc.dg/vect/vect-cond-reduc-6.c -flto -ffat-lto-objects (internal
compiler error)

FAIL: gcc.dg/vect/pr59591-1.c (internal compiler error)
FAIL: gcc.dg/vect/pr59591-1.c (test for excess errors)
Excess errors:
during RTL pass: expand
/gcc/testsuite/gcc.dg/vect/pr59591-1.c:23:1: internal compiler error: in
do_store_flag, at expr.c:12388
0x913726 do_store_flag
        /gcc/expr.c:12388
0x914e01 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        /gcc/expr.c:9623
0x91d8d0 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /gcc/expr.c:10165
0xa37e6d expand_normal
        /gcc/expr.h:288
0xa37e6d expand_vect_cond_optab_fn
        /gcc/internal-fn.c:2602
0x7d28ef expand_call_stmt
        /gcc/cfgexpand.c:2612
0x7d28ef expand_gimple_stmt_1
        /gcc/cfgexpand.c:3686
0x7d28ef expand_gimple_stmt
        /gcc/cfgexpand.c:3851
0x7d43bd expand_gimple_basic_block
        /gcc/cfgexpand.c:5892
0x7d6530 execute
        /gcc/cfgexpand.c:6576

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

* [Bug tree-optimization/97228] [11 regression] New ICEs on arm since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36
  2020-09-28 13:09 [Bug tree-optimization/97228] New: [11 regression] New ICEs on arm since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36 clyon at gcc dot gnu.org
@ 2020-09-28 13:10 ` clyon at gcc dot gnu.org
  2020-09-29  7:16 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: clyon at gcc dot gnu.org @ 2020-09-28 13:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Christophe Lyon <clyon at gcc dot gnu.org> ---
It causes regressions in fortran too:
gfortran.dg/assumed_rank_bounds_3.f90   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions  (internal compiler error)
gfortran.dg/assumed_rank_bounds_3.f90   -O3 -g  (internal compiler error)

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

* [Bug tree-optimization/97228] [11 regression] New ICEs on arm since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36
  2020-09-28 13:09 [Bug tree-optimization/97228] New: [11 regression] New ICEs on arm since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36 clyon at gcc dot gnu.org
  2020-09-28 13:10 ` [Bug tree-optimization/97228] " clyon at gcc dot gnu.org
@ 2020-09-29  7:16 ` rguenth at gcc dot gnu.org
  2020-09-29  7:50 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-29  7:16 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
   Target Milestone|---                         |11.0
   Last reconfirmed|                            |2020-09-29

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will have a look, hopefully I can reproduce ...

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

* [Bug tree-optimization/97228] [11 regression] New ICEs on arm since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36
  2020-09-28 13:09 [Bug tree-optimization/97228] New: [11 regression] New ICEs on arm since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36 clyon at gcc dot gnu.org
  2020-09-28 13:10 ` [Bug tree-optimization/97228] " clyon at gcc dot gnu.org
  2020-09-29  7:16 ` rguenth at gcc dot gnu.org
@ 2020-09-29  7:50 ` rguenth at gcc dot gnu.org
  2020-10-01 12:41 ` rsandifo at gcc dot gnu.org
  2020-10-02 12:12 ` rsandifo at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-29  7:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rsandifo at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
So for

FAIL: gcc.dg/tree-ssa/ifc-cd.c (internal compiler error)

I see before ISEL changes like

@@ -180,16 +180,12 @@
   vect_b1_24.24_112 = vect_a1_16.12_97 + { 1, 1, 1, 1 };
   vect_b1_25.25_114 = vect_a1_16.12_97 + { 2, 2, 2, 2 };
   _118 = vect_a2_18.15_100 > { 0, 0, 0, 0 };
-  vect_patt_35.26_119 = VEC_COND_EXPR <_118, { 1, 1, 1, 1 }, { 0, 0, 0, 0 }>;
   _122 = vect__8.23_110 == { 0, 0, 0, 0 };
-  vect_patt_26.27_123 = VEC_COND_EXPR <_122, vect_patt_35.26_119, { 0, 0, 0, 0
}>;
-  _125 = vect_patt_26.27_123 != { 0, 0, 0, 0 };
+  _125 = VEC_COND_EXPR <_122, _118, { 0, 0, 0, 0 }>;
   vect_patt_44.28_126 = VEC_COND_EXPR <_125, vect_b1_25.25_114,
vect_b1_24.24_112>;
   vect_patt_37.31_138 = VEC_COND_EXPR <_125, vect_b1_24.24_112,
vect_a1_16.12_97>;
-  vect_patt_36.32_143 = VEC_COND_EXPR <_122, { 1, 1, 1, 1 }, { 0, 0, 0, 0 }>;
   _146 = vect_a3_20.18_103 < { 0, 0, 0, 0 };
-  vect_patt_72.33_147 = VEC_COND_EXPR <_146, vect_patt_36.32_143, { 0, 0, 0, 0
}>;
-  _149 = vect_patt_72.33_147 != { 0, 0, 0, 0 };
+  _149 = VEC_COND_EXPR <_146, _122, { 0, 0, 0, 0 }>;
   vect_patt_12.34_150 = VEC_COND_EXPR <_149, vect_patt_37.31_138,
vect_patt_44.28_126>;
   vect__ifc__73.35_154 = VEC_COND_EXPR <_122, vect_patt_12.34_150, { 0, 0, 0,
0 }>;
   MEM <vector(4) int> [(int *)vectp_y.19_105] = vect__ifc__73.35_154;

where the difference is that we end up with a used vector comparison
that is not supported by the target (see also the other PR which Richard
has kindly taken).

Now, folding produces

   _118 = vect_a2_18.15_100 > { 0, 0, 0, 0 };
   _122 = vect__8.23_110 == { 0, 0, 0, 0 };
   _125 = VEC_COND_EXPR <_122, _118, { 0, 0, 0, 0 }>;

that's still not fully simplified, if written as bitwise ops it could be
as simple as

   _125 = _122 & _118;

but then this will probably make the issue worse ;)

I think this is a duplicate of that other bug.

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

* [Bug tree-optimization/97228] [11 regression] New ICEs on arm since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36
  2020-09-28 13:09 [Bug tree-optimization/97228] New: [11 regression] New ICEs on arm since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36 clyon at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-09-29  7:50 ` rguenth at gcc dot gnu.org
@ 2020-10-01 12:41 ` rsandifo at gcc dot gnu.org
  2020-10-02 12:12 ` rsandifo at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2020-10-01 12:41 UTC (permalink / raw)
  To: gcc-bugs

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

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|rguenth at gcc dot gnu.org         |rsandifo at gcc dot gnu.org

--- Comment #4 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
About to post a patch.

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

* [Bug tree-optimization/97228] [11 regression] New ICEs on arm since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36
  2020-09-28 13:09 [Bug tree-optimization/97228] New: [11 regression] New ICEs on arm since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36 clyon at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2020-10-01 12:41 ` rsandifo at gcc dot gnu.org
@ 2020-10-02 12:12 ` rsandifo at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2020-10-02 12:12 UTC (permalink / raw)
  To: gcc-bugs

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

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

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

--- Comment #5 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Fixed by r11-3600.

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

end of thread, other threads:[~2020-10-02 12:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-28 13:09 [Bug tree-optimization/97228] New: [11 regression] New ICEs on arm since r11-3426 g:10843f8303509fcba880c6c05c08e4b4ccd24f36 clyon at gcc dot gnu.org
2020-09-28 13:10 ` [Bug tree-optimization/97228] " clyon at gcc dot gnu.org
2020-09-29  7:16 ` rguenth at gcc dot gnu.org
2020-09-29  7:50 ` rguenth at gcc dot gnu.org
2020-10-01 12:41 ` rsandifo at gcc dot gnu.org
2020-10-02 12:12 ` rsandifo 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).