From patchwork Fri Jun 3 23:17:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 630077 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rM0PL2JJnz9t9B for ; Sat, 4 Jun 2016 09:17:41 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=ZmucSNMe; dkim-atps=neutral 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=E8TDVL+dpWXaZ2xeDVcBXkHm8P8JTaaI/Bw1yyz00HXMJXH80u MAArfZdNTV72boC8pBsQXPkQM/U8K1uLVo8nSmQwyIQF5Wb56M1Bm8BY2y/CXfKl 2Z6eF9ey1eN7jeRG4CRHoFcICUW+FMFxc5q4ekIgBzVG93pjhLHaPtNB8= 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=Y0pUYwbt4L4YF7BLtn6hWed1/pg=; b=ZmucSNMeIwwcVV6emag+ ObiO695MVkePRIAz5cSrbS1HbWLpB0dImJ1gRdeqMdCJnMrFPZehq9/sZwZxbIZ+ 6r+Eo+xyxeOYntB2lXvN79v2NpWZZ4JuxM5qX0wONk5/sl4v0EHr2KTeipZ3dpav gLm7U61IMwiohLZJ0afz9wQ= Received: (qmail 4749 invoked by alias); 3 Jun 2016 23:17:33 -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 4738 invoked by uid 89); 3 Jun 2016 23:17:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=76, 8, opportunity 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 03 Jun 2016 23:17:31 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4578EC04D28E for ; Fri, 3 Jun 2016 23:17:30 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-31.phx2.redhat.com [10.3.116.31]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u53NHTLR000869 for ; Fri, 3 Jun 2016 19:17:30 -0400 To: gcc-patches From: Jeff Law Subject: [PR tree-optimization/71316] Fix expected output in testcase after recent threading changes Message-ID: <1dae7fe7-8865-00f4-2f62-a650ed27be6d@redhat.com> Date: Fri, 3 Jun 2016 17:17:29 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 X-IsSubscribed: yes As outlined in the BZ, this test was partially compromised by the recent threading changes. Those changes result in a jump thread being found during VRP1 rather than DOM2 (ie, earlier in the pipeline, which is good). The expected output needed tweaking for the logical-op-short-circuit targets. Installed on the trunk after verifying ppc64le passes the test. Jeff commit c1489ff56ba84d35a076117ca923261e24b01ce2 Author: law Date: Fri Jun 3 23:12:39 2016 +0000 PR tree-optimization/71316 * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Update expected output. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237083 138bc75d-0d04-0410-961f-82ee72b054a4 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1a80a9c..cd45cda 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-06-03 Jeff Law + + PR tree-optimization/71316 + * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Update expected output. + 2016-06-03 Jakub Jelinek * gcc.dg/vect/vect-live-1.c: Remove dg-options. Add diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c index 4258fb5..2dd9177 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-dom2-details -std=gnu89" } */ +/* { dg-options "-O2 -fdump-tree-vrp1-details -fdump-tree-dom2-details -std=gnu89" } */ struct bitmap_head_def; typedef struct bitmap_head_def *bitmap; typedef const struct bitmap_head_def *const_bitmap; @@ -76,8 +76,7 @@ bitmap_ior_and_compl (bitmap dst, const_bitmap a, const_bitmap b, skipping the known-true "b_elt && kill_elt" in the second condition. - However, 3 of those 4 opportunities are ultimately eliminated by - DOM optimizing away conditionals. So there's only one jump threading - opportunity left. */ -/* { dg-final { scan-tree-dump-times "Threaded" 1 "dom2" { target logical_op_short_circuit } } } */ + The !b_elt cases are picked up by VRP1 as jump threads. The others + are optimized by DOM. */ +/* { dg-final { scan-tree-dump-times "Threaded" 2 "vrp1" { target logical_op_short_circuit } } } */