public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "aagarwa at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/36010] Loop interchange not performed Date: Mon, 16 Oct 2023 12:40:07 +0000 [thread overview] Message-ID: <bug-36010-4-6m4OcWbstu@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-36010-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36010 Ajit Kumar Agarwal <aagarwa at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aagarwa at gcc dot gnu.org --- Comment #5 from Ajit Kumar Agarwal <aagarwa at gcc dot gnu.org> --- Use the following flags-fassociative-math -fno-signed-zeros -fno-trapping-math to make loop-interchange work. Following code in gcc/gimple-loop-interchange.cc @@ -514,8 +514,8 @@ loop_cand::analyze_iloop_reduction_var (tree var) if (! (associative_tree_code (code) || (code == MINUS_EXPR && use_p->use == gimple_assign_rhs1_ptr (ass))) || (FLOAT_TYPE_P (TREE_TYPE (var)) && ! flag_associative_math)) return false; } else Because of the flag_associative_math conditions at line no: 514 it returns false and loop interchange doesn't work. Using the above flags make flag_associative_math as true and loop interchange works.
next prev parent reply other threads:[~2023-10-16 12:40 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-36010-4@http.gcc.gnu.org/bugzilla/> 2021-12-25 11:15 ` pinskia at gcc dot gnu.org 2023-10-16 12:40 ` aagarwa at gcc dot gnu.org [this message] 2023-10-17 7:06 ` rguenth at gcc dot gnu.org 2008-04-22 14:56 [Bug tree-optimization/36010] New: " rguenth at gcc dot gnu dot org 2008-04-22 15:20 ` [Bug tree-optimization/36010] " rguenth at gcc dot gnu dot org 2008-04-22 15:23 ` rguenth at gcc dot gnu dot org 2008-05-05 5:21 ` pinskia at gcc dot gnu dot org 2008-12-28 6:36 ` pinskia at gcc dot gnu dot org
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-36010-4-6m4OcWbstu@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).