public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug tree-optimization/104267] New: [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 @ 2022-01-28 9:53 marxin at gcc dot gnu.org 2022-01-28 9:53 ` [Bug tree-optimization/104267] " marxin at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2022-01-28 9:53 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104267 Bug ID: 104267 Summary: [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: richard.sandiford at arm dot com Target Milestone: --- I see the following ICE: $ gfortran /home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/pr91003.f90 -Ofast -mavx512f -fsignaling-nans -c f951: Warning: ‘-fassociative-math’ disabled; other options take precedence during GIMPLE pass: vect /home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/pr91003.f90:3:20: 3 | SUBROUTINE FOO(N, A, B, C, D, E, F, G) | ^ internal compiler error: in vect_schedule_slp_node, at tree-vect-slp.cc:7172 0x7e39cd vect_schedule_slp_node /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:7172 0x1282b33 vect_schedule_scc /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:7470 0x12828b1 vect_schedule_scc /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:7451 0x12828b1 vect_schedule_scc /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:7451 0x12828b1 vect_schedule_scc /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:7451 0x12828b1 vect_schedule_scc /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:7451 0x12828b1 vect_schedule_scc /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:7451 0x12828b1 vect_schedule_scc /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:7451 0x128317f vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr> const&) /home/marxin/Programming/gcc/gcc/tree-vect-slp.cc:7587 0x1258234 vect_transform_loop(_loop_vec_info*, gimple*) /home/marxin/Programming/gcc/gcc/tree-vect-loop.cc:9753 0x128f5dd vect_transform_loops /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1003 0x128f5dd try_vectorize_loop_1 /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1133 0x128f5dd try_vectorize_loop /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1162 0x128fe14 execute /home/marxin/Programming/gcc/gcc/tree-vectorizer.cc:1278 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/104267] [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 2022-01-28 9:53 [Bug tree-optimization/104267] New: [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 marxin at gcc dot gnu.org @ 2022-01-28 9:53 ` marxin at gcc dot gnu.org 2022-01-28 10:06 ` rguenth at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2022-01-28 9:53 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104267 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |12.0 Last reconfirmed| |2022-01-28 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Priority|P3 |P1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/104267] [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 2022-01-28 9:53 [Bug tree-optimization/104267] New: [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 marxin at gcc dot gnu.org 2022-01-28 9:53 ` [Bug tree-optimization/104267] " marxin at gcc dot gnu.org @ 2022-01-28 10:06 ` rguenth at gcc dot gnu.org 2022-01-28 10:30 ` rguenth at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2022-01-28 10:06 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104267 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |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> --- I will have a look. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/104267] [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 2022-01-28 9:53 [Bug tree-optimization/104267] New: [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 marxin at gcc dot gnu.org 2022-01-28 9:53 ` [Bug tree-optimization/104267] " marxin at gcc dot gnu.org 2022-01-28 10:06 ` rguenth at gcc dot gnu.org @ 2022-01-28 10:30 ` rguenth at gcc dot gnu.org 2022-01-28 12:30 ` cvs-commit at gcc dot gnu.org 2022-01-28 12:30 ` rguenth at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2022-01-28 10:30 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104267 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- pr91003.f90:8:13: note: ------>vectorizing SLP node starting from: _61 = .COND_MUL (_202, j_42(D), bnrm2_60(D), 0.0); pr91003.f90:8:13: missed: could not find an appropriate vector mask type. pr91003.f90:8:13: note: ------>vectorizing SLP node starting from: M.6_62 = .COND_MAX (_202, _36, _61, 0.0); I can't find where we actually verify we can use .COND_MUL for this node. Huh. Note it's pr91003.f90:8:13: note: node 0x426e8c8 (max_nunits=16, refcnt=1) pr91003.f90:8:13: note: op template: _61 = .COND_MUL (_202, j_42(D), bnrm2_60(D), 0.0); pr91003.f90:8:13: note: stmt 0 _61 = .COND_MUL (_202, j_42(D), bnrm2_60(D), 0.0); pr91003.f90:8:13: note: stmt 1 _61 = .COND_MUL (_202, j_42(D), bnrm2_60(D), 0.0); pr91003.f90:8:13: note: children 0x426e950 0x426e9d8 0x426ea60 0x426eae8 pr91003.f90:8:13: note: node (external) 0x426e950 (max_nunits=1, refcnt=1) pr91003.f90:8:13: note: { _202, _202 } pr91003.f90:8:13: note: node (external) 0x426e9d8 (max_nunits=1, refcnt=1) pr91003.f90:8:13: note: { j_42(D), j_42(D) } pr91003.f90:8:13: note: node (external) 0x426ea60 (max_nunits=1, refcnt=1) pr91003.f90:8:13: note: { bnrm2_60(D), bnrm2_60(D) } pr91003.f90:8:13: note: node (constant) 0x426eae8 (max_nunits=1, refcnt=1) pr91003.f90:8:13: note: { 0.0, 0.0 } so _all_ childs are external/constant. I think the issue here is that we pushed vector(16) real(kind=4) as vector type for this external def but we are expecting a VECTOR_BOOLEAN_TYPE_P here. diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index 824ebb6354b..000a0f4b47e 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -3444,7 +3444,9 @@ vectorizable_call (vec_info *vinfo, { if (slp_node) for (i = 0; i < nargs; ++i) - if (!vect_maybe_update_slp_op_vectype (slp_op[i], vectype_in)) + if (!vect_maybe_update_slp_op_vectype (slp_op[i], + vectypes[i] + ? vectypes[i] : vectype_in)) { if (dump_enabled_p ()) dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location, fixes this. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/104267] [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 2022-01-28 9:53 [Bug tree-optimization/104267] New: [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 marxin at gcc dot gnu.org ` (2 preceding siblings ...) 2022-01-28 10:30 ` rguenth at gcc dot gnu.org @ 2022-01-28 12:30 ` cvs-commit at gcc dot gnu.org 2022-01-28 12:30 ` rguenth at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2022-01-28 12:30 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104267 --- Comment #3 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:9ec306582fd60e5b76f07eb81c9ed2415d9a3590 commit r12-6918-g9ec306582fd60e5b76f07eb81c9ed2415d9a3590 Author: Richard Biener <rguenther@suse.de> Date: Fri Jan 28 11:32:11 2022 +0100 tree-optimization/104267 - fix external def vector type for call args The following fixes the vector type registered for external defs in call arguments when vectorizing with SLP. We assumed uniform vectype_in types here but with calls like .COND_MUL we also have mask arguments which, when invariant or external, need to have a proper mask vector type. 2022-01-28 Richard Biener <rguenther@suse.de> PR tree-optimization/104267 * tree-vect-stmts.cc (vectorizable_call): Properly use the per-argument determined vector type for externals and invariants. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/104267] [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 2022-01-28 9:53 [Bug tree-optimization/104267] New: [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 marxin at gcc dot gnu.org ` (3 preceding siblings ...) 2022-01-28 12:30 ` cvs-commit at gcc dot gnu.org @ 2022-01-28 12:30 ` rguenth at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2022-01-28 12:30 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104267 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-01-28 12:30 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-01-28 9:53 [Bug tree-optimization/104267] New: [12 Regression] ICE in vect_schedule_slp_node, at tree-vect-slp.c:7144 since r12-5613-g32ede1083fad4b68 marxin at gcc dot gnu.org 2022-01-28 9:53 ` [Bug tree-optimization/104267] " marxin at gcc dot gnu.org 2022-01-28 10:06 ` rguenth at gcc dot gnu.org 2022-01-28 10:30 ` rguenth at gcc dot gnu.org 2022-01-28 12:30 ` cvs-commit at gcc dot gnu.org 2022-01-28 12:30 ` 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).