public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/112404] New: [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311
@ 2023-11-06 10:45 rguenth at gcc dot gnu.org
2023-11-06 11:16 ` [Bug tree-optimization/112404] " tnfchris at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-06 10:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112404
Bug ID: 112404
Summary: [14 Regression] 521.wrf_r fails to build with internal
compiler error: in get_vectype_for_scalar_type, at
tree-vect-stmts.cc:13311
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---
On x86_64-linux with -Ofast -march=znver4:
/space/rguenther/install/trunk-r14-5145-vecupdate/usr/local/bin/gfortran -c -o
module_fdda_psufddagd.fppized.o -I. -I./netcdf/include -I./inc -Ofast
-march=znver4 -std=legacy -fconvert=big-endian -fno-openmp -g0
module_fdda_psufddagd.fppized.f90
during GIMPLE pass: slp
module_fdda_psufddagd.fppized.f90:553:21:
553 | SUBROUTINE sfddagd(itimestep,dx,dt,xtime, &
| ^
internal compiler error: in get_vectype_for_scalar_type, at
tree-vect-stmts.cc:13311
0x2037204 get_vectype_for_scalar_type(vec_info*, tree_node*, unsigned int)
/space/rguenther/src/gcc11queue/gcc/tree-vect-stmts.cc:13311
0x2045fb8 get_mask_type_for_scalar_type(vec_info*, tree_node*, unsigned int)
/space/rguenther/src/gcc11queue/gcc/tree-vect-stmts.cc:13381
0x2046222 vect_check_scalar_mask
/space/rguenther/src/gcc11queue/gcc/tree-vect-stmts.cc:2459
0x2046802 vectorizable_load
/space/rguenther/src/gcc11queue/gcc/tree-vect-stmts.cc:9853
0x205b112 vect_analyze_stmt(vec_info*, _stmt_vec_info*, bool*, _slp_tree*,
_slp_instance*, vec<stmt_info_for_cost, va_heap, vl_ptr>*)
/space/rguenther/src/gcc11queue/gcc/tree-vect-stmts.cc:12954
0x1298b85 vect_slp_analyze_node_operations_1
/space/rguenther/src/gcc11queue/gcc/tree-vect-slp.cc:6141
going to reduce.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112404] [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311
2023-11-06 10:45 [Bug tree-optimization/112404] New: [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311 rguenth at gcc dot gnu.org
@ 2023-11-06 11:16 ` tnfchris at gcc dot gnu.org
2023-11-06 11:17 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tnfchris at gcc dot gnu.org @ 2023-11-06 11:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112404
Tamar Christina <tnfchris at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-11-6
CC| |tnfchris at gcc dot gnu.org
--- Comment #1 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Same failure on AArch64 with SVE.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112404] [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311
2023-11-06 10:45 [Bug tree-optimization/112404] New: [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311 rguenth at gcc dot gnu.org
2023-11-06 11:16 ` [Bug tree-optimization/112404] " tnfchris at gcc dot gnu.org
@ 2023-11-06 11:17 ` rguenth at gcc dot gnu.org
2023-11-06 11:39 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-06 11:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112404
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Target Milestone|--- |14.0
Status|UNCONFIRMED |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
SUBROUTINE sfddagd( regime, znt ,ite ,jte )
REAL, DIMENSION( ime, IN) :: regime, znt
REAL, DIMENSION( ite, jte) :: wndcor_u
LOGICAL wrf_dm_on_monitor
IF( int4 == 1 ) THEN
DO j=jts,jtf
DO i=itsu,itf
reg = regime(i-1, j)
IF( reg > 10.0 ) THEN
znt0 = znt(i-1, j) + znt(i, j)
IF( znt0 <= 0.2) THEN
wndcor_u(i,j) = 0.2
ENDIF
ENDIF
ENDDO
ENDDO
IF ( wrf_dm_on_monitor()) THEN
ENDIF
ENDIF
END
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112404] [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311
2023-11-06 10:45 [Bug tree-optimization/112404] New: [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311 rguenth at gcc dot gnu.org
2023-11-06 11:16 ` [Bug tree-optimization/112404] " tnfchris at gcc dot gnu.org
2023-11-06 11:17 ` rguenth at gcc dot gnu.org
@ 2023-11-06 11:39 ` rguenth at gcc dot gnu.org
2023-11-06 13:09 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-06 11:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112404
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Two issues, a simple omission where the ICE occurs and then failure to compute
alignment info for SLP of .MASK_LOAD because SLP_INSTANCE_LOADS doesn't
contain them. Oops.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112404] [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311
2023-11-06 10:45 [Bug tree-optimization/112404] New: [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311 rguenth at gcc dot gnu.org
` (2 preceding siblings ...)
2023-11-06 11:39 ` rguenth at gcc dot gnu.org
@ 2023-11-06 13:09 ` cvs-commit at gcc dot gnu.org
2023-11-06 13:10 ` rguenth at gcc dot gnu.org
2023-11-12 23:27 ` pinskia at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-06 13:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112404
--- Comment #4 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:3cc9ad41db87fb85b13a56bff1f930c258542a70
commit r14-5154-g3cc9ad41db87fb85b13a56bff1f930c258542a70
Author: Richard Biener <rguenther@suse.de>
Date: Mon Nov 6 12:43:11 2023 +0100
tree-optimization/112404 - two issues with SLP of .MASK_LOAD
The following fixes an oversight in vect_check_scalar_mask when
the mask is external or constant. When doing BB vectorization
we need to provide a group_size, best via an overload accepting
the SLP node as argument.
When fixed we then run into the issue that we have not analyzed
alignment of the .MASK_LOADs because they were not identified
as loads by vect_gather_slp_loads. Fixed by reworking the
detection.
PR tree-optimization/112404
* tree-vectorizer.h (get_mask_type_for_scalar_type): Declare
overload with SLP node argument.
* tree-vect-stmts.cc (get_mask_type_for_scalar_type): Implement it.
(vect_check_scalar_mask): Use it.
* tree-vect-slp.cc (vect_gather_slp_loads): Properly identify
loads also for nodes with children, like .MASK_LOAD.
* tree-vect-loop.cc (vect_analyze_loop_2): Look at the
representative for load nodes and check whether it is a grouped
access before looking for load-lanes support.
* gfortran.dg/pr112404.f90: New testcase.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112404] [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311
2023-11-06 10:45 [Bug tree-optimization/112404] New: [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311 rguenth at gcc dot gnu.org
` (3 preceding siblings ...)
2023-11-06 13:09 ` cvs-commit at gcc dot gnu.org
@ 2023-11-06 13:10 ` rguenth at gcc dot gnu.org
2023-11-12 23:27 ` pinskia at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-06 13:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112404
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112404] [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311
2023-11-06 10:45 [Bug tree-optimization/112404] New: [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311 rguenth at gcc dot gnu.org
` (4 preceding siblings ...)
2023-11-06 13:10 ` rguenth at gcc dot gnu.org
@ 2023-11-12 23:27 ` pinskia at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-12 23:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112404
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |crazylht at gmail dot com
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 111859 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-11-12 23:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-06 10:45 [Bug tree-optimization/112404] New: [14 Regression] 521.wrf_r fails to build with internal compiler error: in get_vectype_for_scalar_type, at tree-vect-stmts.cc:13311 rguenth at gcc dot gnu.org
2023-11-06 11:16 ` [Bug tree-optimization/112404] " tnfchris at gcc dot gnu.org
2023-11-06 11:17 ` rguenth at gcc dot gnu.org
2023-11-06 11:39 ` rguenth at gcc dot gnu.org
2023-11-06 13:09 ` cvs-commit at gcc dot gnu.org
2023-11-06 13:10 ` rguenth at gcc dot gnu.org
2023-11-12 23:27 ` pinskia 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).