From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76831 invoked by alias); 26 Feb 2015 11:30:51 -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 76456 invoked by uid 48); 26 Feb 2015 11:30:47 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/65206] Vectorized version of loop is removed. Date: Thu, 26 Feb 2015 12:15: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: 5.0 X-Bugzilla-Keywords: missed-optimization 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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: 2015-02/txt/msg02904.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65206 --- Comment #6 from Richard Biener --- Created attachment 34882 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34882&action=edit hack just for the masked load/store case Incomplete special-casing for the masked load/store case. We need to mark the masked load/store IFN calls somehow to mark the forwarding as valid. A "real" fix would "duplicate" dr->indices to always have an alternate analysis for *&dr->ref in case dr->ref is not a pointer evolution. We could then pick the one with compatible dr->indices.base_object. Of course that may still not handle all cases, if the ptr evolution is not enough (like for having a[2][j] vs. *(&a[3][j])). But at least it could help in some general cases.