From patchwork Fri Dec 11 23:18:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 555921 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 BB69D1402D6 for ; Sat, 12 Dec 2015 10:18:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=suk+cQth; 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=vAMiRcZbj/rU111egkzic+q5ZDJk7JiGS1aiFVxfyej1e5ba7y 5l06++zCdXo0QyURumCW+m2wQqDwQk7JDQgkENkGMyRfXcqN/7gDC9AgWSf39Yw8 CDjwBepj1EcQpKkLl2fJ/Y5IgrzF/vDteZhZrsdWg7pC97s2neaDxQVzk= 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=H6oLv27hmb/vbBPe8HftTz4jU4U=; b=suk+cQthaDn8NuZ57VkS 6POYdZGNgGz6R/4nGP15T10GOpUygbuc6T02JW2EQVxMqlS7mcQbvdmpwPGddAr0 o6JzGROz+A86zA4RP5EfAhElOO1MXO8ofrZo1rN7z3wrGib0VXTyAqzQ3Rb4VpFq 09TGiKciaw0eDFM5vqNE8CM= Received: (qmail 107726 invoked by alias); 11 Dec 2015 23:18:37 -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 107715 invoked by uid 89); 11 Dec 2015 23:18:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 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, 11 Dec 2015 23:18:36 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 07D293407F9 for ; Fri, 11 Dec 2015 23:18:35 +0000 (UTC) Received: from localhost.localdomain (ovpn-113-83.phx2.redhat.com [10.3.113.83]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tBBNIY7K016851 for ; Fri, 11 Dec 2015 18:18:34 -0500 To: gcc-patches@gcc.gnu.org From: Jeff Law Subject: [PATCH][PR tree-optimization/68844] Fix testcase expected output Message-ID: <566B59CA.5080806@redhat.com> Date: Fri, 11 Dec 2015 16:18:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 X-IsSubscribed: yes As is detailed thoroughly in the BZ entry; DOM was changed to not rely on the jump threader to handle trivial conditionals. Those changes twiddle the number of discovered & realized jump threads on some targets. I've gone through the resultant dumps and verified that we're doing the right thing for each of the jump threads that we no longer realize (essentially DOM optimizes those paths on its own and doesn't need the threader). Installed on the trunk after verifying ppc64le passes again. Jeff diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index af682a9..3877b19 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-12-11 Jeff Law + + PR tree-optimization/68844 + * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Update expected output. + 2015-12-11 Nathan Sidwell * gcc.dg/pr59605-1.c: Reduce iterations for nvptx. 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 77ba74c..4258fb5 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 @@ -74,6 +74,10 @@ bitmap_ior_and_compl (bitmap dst, const_bitmap a, const_bitmap b, 2x "kill_elt->indx >= b_elt->indx" in the first "while" loop -> "kill_elt->indx == b_elt->indx" in the second condition, skipping the known-true "b_elt && kill_elt" in the second - condition. */ -/* { dg-final { scan-tree-dump-times "Threaded" 4 "dom2" { target logical_op_short_circuit } } } */ + 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 } } } */