public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "irar at il dot ibm.com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/46213] [4.6 Regression] gfortran.dg/aliasing_array_result_1.f90 ICE: in vectorizable_reduction, at tree-vect-loop.c:4046 with custom compiler flags Date: Tue, 02 Nov 2010 08:32:00 -0000 [thread overview] Message-ID: <20101102083200.KlFZPKYAFeZY6BcNraDfTC_U3DMenYISDjd7j_Bvl4M@z> (raw) In-Reply-To: <bug-46213-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46213 Ira Rosen <irar at il dot ibm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |irar at gcc dot gnu.org |gnu.org | --- Comment #4 from Ira Rosen <irar at il dot ibm.com> 2010-11-02 08:32:15 UTC --- I am testing: Index: tree-vect-loop.c =================================================================== --- tree-vect-loop.c (revision 166172) +++ tree-vect-loop.c (working copy) @@ -1800,7 +1800,11 @@ vect_is_simple_reduction_1 (loop_vec_inf simply rewriting this into "res += -x[i]". Avoid changing gimple instruction for the first simple tests and only do this if we're allowed to change code at all. */ - if (code == MINUS_EXPR && modify) + if (code == MINUS_EXPR + && modify + && (op1 = gimple_assign_rhs1 (def_stmt)) + && TREE_CODE (op1) == SSA_NAME + && SSA_NAME_DEF_STMT (op1) == phi) code = PLUS_EXPR; if (check_reduction
next prev parent reply other threads:[~2010-11-02 8:32 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-10-28 18:44 [Bug tree-optimization/46213] New: " zsojka at seznam dot cz 2010-10-28 19:11 ` [Bug tree-optimization/46213] " dominiq at lps dot ens.fr 2010-10-28 19:52 ` irar at il dot ibm.com 2010-10-29 14:31 ` hjl.tools at gmail dot com 2010-10-29 23:32 ` rguenth at gcc dot gnu.org 2010-11-02 8:32 ` irar at il dot ibm.com [this message] 2010-11-04 11:51 ` irar at gcc dot gnu.org 2010-11-04 12:48 ` irar at il dot ibm.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=20101102083200.KlFZPKYAFeZY6BcNraDfTC_U3DMenYISDjd7j_Bvl4M@z \ --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).