From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15268 invoked by alias); 26 Sep 2013 14:47:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 15229 invoked by uid 48); 26 Sep 2013 14:47:26 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/57223] Auto-vectorization fails for nested multiple loops depending on type of array Date: Thu, 26 Sep 2013 14:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.7.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-09/txt/msg01844.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57223 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-09-26 Ever confirmed|0 |1 --- Comment #6 from Richard Biener --- (In reply to Marc Glisse from comment #5) > (In reply to Usishchev Yury from comment #3) > > I'm testing it on current trunk, and second loop is not vectorized both with > > floating point and integer types. > > For floating point types it is not vectorized due to control flow in loop: > > > > : > > // ... > > if (t_56 > _61) > > goto ; > > else > > goto ; > > : > > : > > # iftmp.2_7 = PHI <_61(16), t_56(15)> > > > > This can be optimized to MIN_EXPR in phiopt pass, but is not because of NaNs: > > Even without MIN_EXPR, ifcvt should turn this into a COND_EXPR that can be > vectorized, no? I think it is. Both loops are vectorized with -O3 -fno-tree-pre and test_t == float on x86_64. Confirmed for the PRE issue.