From patchwork Fri Dec 18 04:04:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 558728 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 3D09A1402BC for ; Fri, 18 Dec 2015 15:04:51 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=f7sjJIlL; 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=EdM5kA/GRSCOmSUh9A2DDSPymUMx9wnGn0LDIC3bH0kTNfXMiJ jX1tfahbtUuj5oHjWJ22iAv4ssCU5glUKXXe0asWMYGv4penByFbVrW2t/bcNNQC Q1kiA8dLaz5LTRb2qbj4kT46T3sZPnTDAuAwR9PBebUuTqbstZ803YFaw= 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=emdfTLHAi12RTnyO4uayTo3xM3Y=; b=f7sjJIlLC4WdQNL/8PHS +9JMKCnnYkWOn47fNtWE0BkiRIGtNLEwec7nFV2mvUYB7Na2CBS3ovdYp1WH9BQx CdfhCtTJrkjpAlER14yjVaySVMRz9YlNE0qA+yYpXOOSnoV5x3nK18ppyfASIOLp 8+aVjo0ZS9HJclE2/ggXqXE= Received: (qmail 74633 invoked by alias); 18 Dec 2015 04:04:43 -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 74617 invoked by uid 89); 18 Dec 2015 04:04:42 -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 spammy=sk:gimple-, sk:gimple, fsplitpaths, UD:gimple-ssa-split-paths.c 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, 18 Dec 2015 04:04:41 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 2EDB2A3D2A for ; Fri, 18 Dec 2015 04:04:40 +0000 (UTC) Received: from localhost.localdomain (ovpn-113-83.phx2.redhat.com [10.3.113.83]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tBI44dYi025340 for ; Thu, 17 Dec 2015 23:04:40 -0500 To: gcc-patches@gcc.gnu.org From: Jeff Law Subject: [PATCH] Move split-path pass next to the tracer pass Message-ID: <567385D7.7040802@redhat.com> Date: Thu, 17 Dec 2015 21:04:39 -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 Richi noted that the two passes, which do very similar things are at slightly different places in the pipeline. There really isn't a good reason for that. This patch sinks the split-path pass slightly so that it's immediately before the tracer pass. Bootstrapped and regression tested on x86_64-linux-gnu & installed on the trunk. Jeff commit 221e081904a5cb3423a03b7f6e3173fe205f0adb Author: law Date: Fri Dec 18 04:04:20 2015 +0000 [PATCH] Move split-path pass next to the tracer pass * passes.def: Put the split-paths pass immediately before the tracer pass. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231800 138bc75d-0d04-0410-961f-82ee72b054a4 diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 070b2dd..bf01dfb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2015-12-17 Jeff Law + * passes.def: Put the split-paths pass immediately before the + tracer pass. + * doc/invoke.texi (-O2 options): Remove -fsplit-paths. (-O3 options): Add -fsplit-paths. * gimple-ssa-split-paths.c: Include predict.h diff --git a/gcc/passes.def b/gcc/passes.def index 2ba8490..59114a9 100644 --- a/gcc/passes.def +++ b/gcc/passes.def @@ -302,10 +302,10 @@ along with GCC; see the file COPYING3. If not see POP_INSERT_PASSES () NEXT_PASS (pass_simduid_cleanup); NEXT_PASS (pass_lower_vector_ssa); - NEXT_PASS (pass_split_paths); NEXT_PASS (pass_cse_reciprocals); NEXT_PASS (pass_reassoc, false /* insert_powi_p */); NEXT_PASS (pass_strength_reduction); + NEXT_PASS (pass_split_paths); NEXT_PASS (pass_tracer); NEXT_PASS (pass_dominator, false /* may_peel_loop_headers_p */); NEXT_PASS (pass_strlen);