From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30272 invoked by alias); 21 Jan 2013 17:37:42 -0000 Received: (qmail 30212 invoked by uid 22791); 21 Jan 2013 17:37:41 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_ZJ X-Spam-Check-By: sourceware.org Received: from mail-ob0-f171.google.com (HELO mail-ob0-f171.google.com) (209.85.214.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 21 Jan 2013 17:37:33 +0000 Received: by mail-ob0-f171.google.com with SMTP id lz20so586916obb.30 for ; Mon, 21 Jan 2013 09:37:32 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.182.228.4 with SMTP id se4mr9854117obc.60.1358789852681; Mon, 21 Jan 2013 09:37:32 -0800 (PST) Received: by 10.182.153.201 with HTTP; Mon, 21 Jan 2013 09:37:32 -0800 (PST) In-Reply-To: References: Date: Mon, 21 Jan 2013 17:37:00 -0000 Message-ID: Subject: Re: [PATCH v2, haifa-sched]: Fix PR56023, -fcompare-debug failure due to sched1 pass on 4.6 branch From: Uros Bizjak To: gcc-patches@gcc.gnu.org Cc: =?ISO-8859-1?Q?Ra=FAl_Porcel?= , Vladimir Makarov Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg01066.txt.bz2 On Mon, Jan 21, 2013 at 1:27 PM, Uros Bizjak wrote: >> We should not update ticks of instructions, dependent on debug >> instruction. Without the patch, the scheduling order depends on the >> presence of debug instructions and leads to -fcompare-debug failures. > > Attached patch refines previous patch to reject only cases where > non-debug insns depend on debug instructions. We can still fix > inter-ticks of dependent debug insns, without affecting emitted > real-insn sequences. FTR, from offline discussion with Vlad, setting ticks of debug instructions is not necessary (and just wastes cycles), so I will commit version 1 of the patch. Uros.