From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24618 invoked by alias); 2 Jun 2012 20:29:21 -0000 Received: (qmail 24608 invoked by uid 22791); 2 Jun 2012 20:29:20 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 02 Jun 2012 20:29:06 +0000 From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/16458] PowerPC - redundant compare Date: Sat, 02 Jun 2012 20:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P5 X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-06/txt/msg00102.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16458 --- Comment #10 from Peter Bergner 2012-06-02 20:29:04 UTC --- Author: bergner Date: Sat Jun 2 20:28:52 2012 New Revision: 188141 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188141 Log: Backport from mainline 2012-04-11 Peter Bergner Michael Matz PR target/16458 * rtlanal.c (unsigned_reg_p): New function. Update copyright notice dates. * rtl.h (unsigned_reg_p): Prototype it. Update copyright notice dates. * config/rs6000/rs6000.c (rs6000_generate_compare): Use it. Update comment. * expr.c (expand_expr_real_1): Set register attributes. * stmt.c (expand_case): Likewise. Added: branches/ibm/gcc-4_6-branch/gcc/testsuite/gcc.target/powerpc/pr16458-1.c branches/ibm/gcc-4_6-branch/gcc/testsuite/gcc.target/powerpc/pr16458-2.c branches/ibm/gcc-4_6-branch/gcc/testsuite/gcc.target/powerpc/pr16458-3.c branches/ibm/gcc-4_6-branch/gcc/testsuite/gcc.target/powerpc/pr16458-4.c Modified: branches/ibm/gcc-4_6-branch/gcc/ChangeLog.ibm branches/ibm/gcc-4_6-branch/gcc/REVISION branches/ibm/gcc-4_6-branch/gcc/config/rs6000/rs6000.c branches/ibm/gcc-4_6-branch/gcc/expr.c branches/ibm/gcc-4_6-branch/gcc/rtl.h branches/ibm/gcc-4_6-branch/gcc/rtlanal.c branches/ibm/gcc-4_6-branch/gcc/stmt.c