public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110625] [AArch64] Vect: SLP fails to vectorize a loop as the reduction_latency calculated by new costs is too large Date: Tue, 01 Aug 2023 09:09:33 +0000 [thread overview] Message-ID: <bug-110625-4-KPEXsc27GK@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-110625-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110625 Tamar Christina <tnfchris at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tnfchris at gcc dot gnu.org --- Comment #13 from Tamar Christina <tnfchris at gcc dot gnu.org> --- Hi, This patch is causing several ICEs: For instance in x264, during GIMPLE pass: vect x264_src/common/pixel.c: In function 'x264_pixel_satd_8x4.constprop': x264_src/common/pixel.c:234:21: internal compiler error: in info_for_reduction, at tree-vect-loop.cc:5473 234 | static NOINLINE int x264_pixel_satd_8x4( uint8_t *pix1, int i_pix1, uint8_t *pix2, int i_pix2 ) | ^ 0xe45e23 info_for_reduction(vec_info*, _stmt_vec_info*) /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/tree-vect-loop.cc:5473 0xf1e317 aarch64_force_single_cycle /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/config/aarch64/aarch64.cc:16782 0xf1e317 aarch64_vector_costs::count_ops(unsigned int, vect_cost_for_stmt, _stmt_vec_info*, aarch64_vec_op_count*) /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/config/aarch64/aarch64.cc:16807 0xf31fbb aarch64_vector_costs::add_stmt_cost(int, vect_cost_for_stmt, _stmt_vec_info*, _slp_tree*, tree_node*, int, vect_cost_model_location) /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/config/aarch64/aarch64.cc:17074 0xe59edb add_stmt_cost(vector_costs*, int, vect_cost_for_stmt, _stmt_vec_info*, _slp_tree*, tree_node*, int, vect_cost_model_location) /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/tree-vectorizer.h:1823 0xe59edb add_stmt_costs(vector_costs*, vec<stmt_info_for_cost, va_heap, vl_ptr>*) /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/tree-vectorizer.h:1870 0xe59edb vect_compute_single_scalar_iteration_cost /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/tree-vect-loop.cc:1624 0xe59edb vect_analyze_loop_2 /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/tree-vect-loop.cc:2710 0xe5bb07 vect_analyze_loop_1 /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/tree-vect-loop.cc:3329 0xe5c1cb vect_analyze_loop(loop*, vec_info_shared*) /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/tree-vect-loop.cc:3483 0xe90797 try_vectorize_loop_1 /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/tree-vectorizer.cc:1064 0xe90797 try_vectorize_loop /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/tree-vectorizer.cc:1180 0xe90cb3 execute /opt/buildAgent/work/5c94c4ced6ebfcd0/gcc/tree-vectorizer.cc:1296 This seems to be caused because in aarch64_force_single_cycle is unconditionally calling info_for_reduction without checking to see if this stmt is actually a reduction. You'll want to check STMT_VINFO_REDUC_DEF or STMT_VINFO_DEF_TYPE before calling this.
next prev parent reply other threads:[~2023-08-01 9:09 UTC|newest] Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-07-11 9:15 [Bug target/110625] New: " hliu at amperecomputing dot com 2023-07-11 10:41 ` [Bug target/110625] " rguenth at gcc dot gnu.org 2023-07-12 0:58 ` hliu at amperecomputing dot com 2023-07-14 8:58 ` hliu at amperecomputing dot com 2023-07-18 10:41 ` rsandifo at gcc dot gnu.org 2023-07-18 12:03 ` rsandifo at gcc dot gnu.org 2023-07-19 2:57 ` hliu at amperecomputing dot com 2023-07-19 8:55 ` rsandifo at gcc dot gnu.org 2023-07-19 9:36 ` hliu at amperecomputing dot com 2023-07-28 16:50 ` rsandifo at gcc dot gnu.org 2023-07-28 16:53 ` rsandifo at gcc dot gnu.org 2023-07-31 2:45 ` hliu at amperecomputing dot com 2023-07-31 12:56 ` cvs-commit at gcc dot gnu.org 2023-08-01 9:09 ` tnfchris at gcc dot gnu.org [this message] 2023-08-01 9:19 ` tnfchris at gcc dot gnu.org 2023-08-01 9:45 ` hliu at amperecomputing dot com 2023-08-01 9:49 ` tnfchris at gcc dot gnu.org 2023-08-01 9:50 ` hliu at amperecomputing dot com 2023-08-01 13:49 ` tnfchris at gcc dot gnu.org 2023-08-02 3:49 ` hliu at amperecomputing dot com 2023-08-04 2:34 ` cvs-commit at gcc dot gnu.org 2023-12-08 10:20 ` [Bug target/110625] [14 Regression][AArch64] " tnfchris at gcc dot gnu.org 2023-12-12 16:26 ` tnfchris at gcc dot gnu.org 2023-12-26 14:55 ` tnfchris at gcc dot gnu.org 2023-12-29 15:59 ` cvs-commit at gcc dot gnu.org 2023-12-29 16:16 ` tnfchris at gcc dot gnu.org 2023-12-30 8:34 ` hliu at amperecomputing dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-110625-4-KPEXsc27GK@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).