From patchwork Fri Jul 21 15:37:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 123929 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp290306vqg; Fri, 21 Jul 2023 08:38:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfvqKCqIk+nOwHxog91Oiwmtfe29ujHp/zWcB5QZQDScDdxbCi/DQCdSBdBoOZb67+cgC+ X-Received: by 2002:a17:907:a058:b0:993:d7c4:1a78 with SMTP id gz24-20020a170907a05800b00993d7c41a78mr1681038ejc.10.1689953919087; Fri, 21 Jul 2023 08:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689953919; cv=none; d=google.com; s=arc-20160816; b=MA/QW79eIWHLKuiBQbUhB5nE6dp4aCiVgwMhgXdtL4PTxxXHZGulHcjHQlUf9lLWcL 9CR7jt4omNmJkW0i0cykqkdw2Bw8lCRrY1GAbv7ob09KAoeBj6uBTOSMKSM30JE0i7iZ 0xiWqZ7vVYsg4k1Sh3G3IH0bBjBGWQy4i1fesIZZeZOFvIJvZMNCtuAYeRsfogIy3S+7 V1kikcbZvQy8XdzNmKXfjPsdGBuYn5ovBM/KB6sSME4BGvh1L0hmKWfIRm6WkH1/L/04 8KZaVua7L988FkZLxfQXoxQhbpwW6y04BcX7p2riPRLyvdvGhPmJXYwWYrS/lji6P1Dv QSWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=lJmEByhDVuJpsS3QRzqCg2KzBbcC+iM+8z47M5JEjgk=; fh=KxPrluukuxmHUzYWntxWAHNXePa4vWvGreVeug6Wy5k=; b=tNepmX3+/t+hoS8WtFc4coZzPg6Grb2Y5aIr74oojCCiP46KtpOx5FvAd1EFwyJ1u6 LsDPhqBwBPh5IlA+qxzV+6lkUWzMVOR+4VuBNN7i/7raOHcUxkPoxC/rMYmHDwuGbwjy RTogshmvqXNacXTj+19K9dzbAVuGETLQFtTEsUZkLk+cKCvqp8nsd90gBH1/tZ17f3lj qHxRHyFa+eAr/RbqoLIyB2EXedIXLcXI0zc5Ua8rWELCFNudkXsyh9BwFUGcHfJThfdZ cm/PImOUr3cvF1KfAeWrfpjHED6ohiBhirBlpN5Y5Hu+QZqOtpiC7S2YTCQMc2jLI/p/ 3m+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=pzpCJUc8; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id xa24-20020a170907b9d800b00992acf9b9c9si2139313ejc.621.2023.07.21.08.38.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 08:38:39 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=pzpCJUc8; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 666673854179 for ; Fri, 21 Jul 2023 15:38:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 666673854179 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689953917; bh=lJmEByhDVuJpsS3QRzqCg2KzBbcC+iM+8z47M5JEjgk=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=pzpCJUc84SOs2LPOuNwDzNBXwtqmO2DUlnom5AH59mnM+kJ0f3nFhCLeykgY2ijWz KwPATAbUYh5xGpq5AO4fzg+YgVU2AicOPiZXWYjrwzTEOSQG0hys/R+8i7gy78Trwf +CGQkKJMXAVFfmdVibjQ1OBntmn/nwx1jmFFaykU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by sourceware.org (Postfix) with ESMTPS id 245CC385843E for ; Fri, 21 Jul 2023 15:37:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 245CC385843E Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 174BC28270E; Fri, 21 Jul 2023 17:37:51 +0200 (CEST) Date: Fri, 21 Jul 2023 17:37:51 +0200 To: gcc-patches@gcc.gnu.org Subject: Fix gcc.dg/tree-ssa/copy-headers-9.c and gcc.dg/tree-ssa/dce-1.c failures Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jan Hubicka via Gcc-patches From: Jan Hubicka Reply-To: Jan Hubicka Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772045120813942454 X-GMAIL-MSGID: 1772045120813942454 Hi, this patch fixes template in the two testcases so it matches the output correctly. I did not re-test after last changes in the previous patch, sorry for that. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/copy-headers-9.c: Fix template for tree-ssa-loop-ch.cc changes. * gcc.dg/tree-ssa/dce-1.c: Likewise. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/copy-headers-9.c b/gcc/testsuite/gcc.dg/tree-ssa/copy-headers-9.c index 7cc162ca94d..b49d1fc9576 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/copy-headers-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/copy-headers-9.c @@ -13,8 +13,7 @@ void test (int m, int n) } while (i<10); } -/* { dg-final { scan-tree-dump-times "Duplicating bb . is a win" 1 "ch2" } } */ -/* { dg-final { scan-tree-dump-times "May duplicate bb" 1 "ch2" } } */ -/* { dg-final { scan-tree-dump-times "Duplicating additional BB to obtain do-while loop" 1 "ch2" } } */ +/* { dg-final { scan-tree-dump-times "Duplicating bb . is a win" 2 "ch2" } } */ +/* { dg-final { scan-tree-dump-times "Duplicating bb . is a win. it has zero" 1 "ch2" } } */ /* { dg-final { scan-tree-dump-times "Will duplicate bb" 2 "ch2" } } */ /* { dg-final { scan-tree-dump "is now do-while loop" "ch2" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/dce-1.c b/gcc/testsuite/gcc.dg/tree-ssa/dce-1.c index 91c3bcd6c1c..3ebfa988503 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/dce-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/dce-1.c @@ -13,6 +13,6 @@ int foo (int b, int j) } /* Check that empty loop is eliminated in this case. We should no longer have the exit condition after the loop. */ -/* { dg-final { scan-tree-dump-not "999)" "cddce1"} } */ -/* { dg-final { scan-tree-dump-not "1000)" "cddce1"} } */ +/* { dg-final { scan-tree-dump-not "999\\)" "cddce1"} } */ +/* { dg-final { scan-tree-dump-not "1000\\)" "cddce1"} } */