From patchwork Thu Jan 18 04:09:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 862739 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-471546-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Ld/yTtVh"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zMVpW3pW2z9t0m for ; Thu, 18 Jan 2018 15:09:38 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=rplSP3SbhcqmFnbaR6Ru2p7rVXgcflR3EEfOclUWmPcjto7ZHK hOb5FSb7EoHcLH3WbI6cgPK3QBcOjIWwwpdjFbG2WTjEOmHjFATJTWuNv88FW7xe Q+fn/ThEVE/hLTEBoOfbdjEUlHEG/QEBhyUKkQFP12QroW/MjrNmkYJT8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=i4EDnVEysM5VB9Obm81ZgPZr3uY=; b=Ld/yTtVh0nqTdH5oqyln v8Ymt6qPc4LLYigNMwG1dXCsMAvbY9Y3f+s4ce8etdsw9clgCoQFayxhY9HDDI7P ZulMrlmvdDuOzXnq3ryZyjECREnxxQIpqrWkF5b7q4x3cJqxzj8qagZ9VcHUIoFM NHFx8mhoPefogaVd9XW7cZc= Received: (qmail 44134 invoked by alias); 18 Jan 2018 04:09:29 -0000 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 Received: (qmail 44122 invoked by uid 89); 18 Jan 2018 04:09:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:1915, H*MI:313c, H*M:313c X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 18 Jan 2018 04:09:28 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 96C70356D6 for ; Thu, 18 Jan 2018 04:09:26 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-57.rdu2.redhat.com [10.10.112.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id E3CAA5D9C6 for ; Thu, 18 Jan 2018 04:09:25 +0000 (UTC) To: gcc-patches From: Jeff Law Subject: [PATCH][committed][PR testsuite/83883] Tighten expected output to work on callee-copies targets Message-ID: <1c0a1afd-313c-e4fd-cfd7-e2d7653940ec@redhat.com> Date: Wed, 17 Jan 2018 21:09:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 X-IsSubscribed: yes On targets where the callee may make a copy of incoming aggregates DSE would trigger in both functions -- prior to inlining of course. This patch tightens the test to look for DSE triggering in the spot where we really wanted to check for it. It's not strictly a regression fix, but given it's a testsuite only change it seems appropriate. Verified it fixes the failure on the hppa targets (prior to the ABI change) as well as that it still passes on x86_64. Installed on the trunk, Jeff commit 0a82247b5bb50c2fb62e334bc20c35a1654c10ca Author: law Date: Thu Jan 18 04:05:27 2018 +0000 PR testsuite/83883 * gcc.dg/tree-ssa/ssa-dse-26.c: Tighten expected output. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256833 138bc75d-0d04-0410-961f-82ee72b054a4 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f710c158848..492c650911e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-01-17 Jeff Law + + PR testsuite/83883 + * gcc.dg/tree-ssa/ssa-dse-26.c: Tighten expected output. + 2018-01-17 Bill Schmidt * gcc.target/powerpc/safe-indirect-jump-1.c: Remove endian diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c index a5638b58247..8e0a24a6c2c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c @@ -29,4 +29,6 @@ constraint_equal (struct constraint a, struct constraint b) && constraint_expr_equal (a.rhs, b.rhs); } -/* { dg-final { scan-tree-dump-times "Deleted dead store" 2 "dse1" } } */ +/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 1 "dse1" } } */ +/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 1 "dse1" } } */ +