From patchwork Tue Sep 13 22:02:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schmidt X-Patchwork-Id: 114565 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 54AFCB71CD for ; Wed, 14 Sep 2011 08:03:18 +1000 (EST) Received: (qmail 25480 invoked by alias); 13 Sep 2011 22:03:14 -0000 Received: (qmail 25465 invoked by uid 22791); 13 Sep 2011 22:03:12 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL, BAYES_05, FROM_12LTRDOM X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Sep 2011 22:02:59 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1R3b4E-0004FH-Sn from Bernd_Schmidt@mentor.com for gcc-patches@gcc.gnu.org; Tue, 13 Sep 2011 15:02:59 -0700 Received: from [127.0.0.1] ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 13 Sep 2011 23:02:56 +0100 Message-ID: <4E6FD30D.3010202@codesourcery.com> Date: Wed, 14 Sep 2011 00:02:53 +0200 From: Bernd Schmidt User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.20) Gecko/20110905 Lightning/1.0b3pre Thunderbird/3.1.12 MIME-Version: 1.0 To: GCC Patches Subject: [3/4] Fix debug_insn problem in hw-doloop References: <4E6FCFE3.5010807@codesourcery.com> In-Reply-To: <4E6FCFE3.5010807@codesourcery.com> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This fixes an oversight that led to a compare-debug failure in the testsuite with the other changes applied. We really don't care if a DEBUG_INSN uses the iteration register or not. Will commit soon as obvious. Bernd * hw-doloop.c (scan_loop): Compute register usage only for non-debug insns. Index: hw-doloop.c =================================================================== --- hw-doloop.c (revision 178779) +++ hw-doloop.c (working copy) @@ -123,7 +123,7 @@ scan_loop (hwloop_info loop) df_ref *def_rec; HARD_REG_SET set_this_insn; - if (!INSN_P (insn)) + if (!NONDEBUG_INSN_P (insn)) continue; if (recog_memoized (insn) < 0