From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7272 invoked by alias); 29 Dec 2009 11:31:23 -0000 Received: (qmail 7226 invoked by uid 48); 29 Dec 2009 11:31:09 -0000 Date: Tue, 29 Dec 2009 11:31:00 -0000 Message-ID: <20091229113109.7225.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/42494] [4.4 Regression] Missed dead-code-elimination: GCC 4.2.1 generates better code than 4.4.0 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "steven at gcc dot gnu dot org" 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 X-SW-Source: 2009-12/txt/msg02617.txt.bz2 ------- Comment #2 from steven at gcc dot gnu dot org 2009-12-29 11:31 ------- The "if (outcnt == 1) func ();" bit is optimized for me with gcc-4.4.2 on x86_64 at -O1 and -O2, but not at -Os. I was a bit too hasty to call this alias related, it seems. The O2 and Os tree dumps start to diverge in the dom1 dump, where we have just one call to func after dom1 at -O2 and still two calls at -O2. -- steven at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|alias | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42494