From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19622 invoked by alias); 27 Sep 2011 10:15:36 -0000 Received: (qmail 19613 invoked by uid 22791); 27 Sep 2011 10:15:35 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_IQ,TW_YI 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; Tue, 27 Sep 2011 10:15:17 +0000 From: "tocarip.intel at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/50038] redundant zero extensions Date: Tue, 27 Sep 2011 11:08: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: tocarip.intel at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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: 2011-09/txt/msg02019.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50038 --- Comment #2 from tocarip.intel at gmail dot com 2011-09-27 10:15:15 UTC --- Created attachment 25369 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25369 Possible solution Here is an experimental patch which solves this problem. I modified implicit-zee pass to also eliminate useless zero-extensions from QImode to SImode. With this patch rgbyiqv test from EEMBC 2.0 benchmark showed 6% improvement. However after this patch implicit-zee may became useful for additional targets. For example it became beneficial to 32-bit x86 (+4% on rgbyiqv). Here is a Changelog: 2011-09-27 Ilya Tocar * implicit-zee.c: Added 2011 to copyright. (combine_set_zero_extend): Add QImode. (merge_def_and_ze): Likewise. (add_removable_zero_extend): Likewise. (not_qi_to_si): New. (make_defs_and_copies_lists): Add check for QImode.