From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1609 invoked by alias); 4 Aug 2014 14:54:22 -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 1590 invoked by uid 48); 4 Aug 2014 14:54:19 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/62004] dead type-unsafe load replaces type-safe load Date: Mon, 04 Aug 2014 14:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.8.4 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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: 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: 2014-08/txt/msg00213.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62004 --- Comment #2 from vries at gcc dot gnu.org --- Created attachment 33242 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33242&action=edit patch to fix if-conversion (In reply to Richard Biener from comment #1) > Heh, interesting set of events ;) > > Now it is interesting how much we desire to perform the tail-merging - we > _could_ > change the alias sets of loads (and stores...) to a "common" one (either if > they > are "equal" or just zero otherwise). Depends on how much we like this kind > of pessimization. > > Same for the RTL bits of course. > > Btw, I still see the conditional execution after RTL expansion, just > cfglayout mode doesn't have unconditonal gotos for the edges. Right, when doing fdump-rtl-all, it looks like fallthrough, but it isn't, I forgot. So it's just if-conversion that does the wrong thing. Attached patch fixes 4.8 if-conversion in a conservative way (I suppose we want a conservative fix for 4.8 and 4.9). OK for testing?