From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14850 invoked by alias); 23 May 2013 08:35:59 -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 14815 invoked by uid 48); 23 May 2013 08:35:57 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/57380] [4.7/4.8/4.9 Regression] GCC 4.9.0 will not vectorize std::max and similar functions Date: Thu, 23 May 2013 08:35: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.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_known_to_work assigned_to target_milestone short_desc 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-05/txt/msg01615.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57380 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2013-05-23 Known to work| |4.5.4 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Target Milestone|--- |4.7.4 Summary|GCC 4.9.0 will not |[4.7/4.8/4.9 Regression] |vectorize std::max and |GCC 4.9.0 will not |similar functions |vectorize std::max and | |similar functions Ever confirmed|0 |1 --- Comment #2 from Richard Biener --- For some reason phiprop doesn't work here. I'll investigate, but I guess it is because the addresses are not constant but depend on the loop IV: : _3 = &b.data[i_2]; _4 = &a.data[i_2]; _10 = MEM[(const int &)&a].data[i_2]; _11 = MEM[(const int &)&b].data[i_2]; if (_10 < _11) goto ; else goto ; : : # iftmp.0_12 = PHI <_3(3), _4(4)> : _6 = *iftmp.0_12;