From patchwork Fri Oct 30 11:16:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 538259 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 0EC95140778 for ; Fri, 30 Oct 2015 22:16:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=EWmM8k2L; 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:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=Yhj9wk7U9KJtKwKm z7lKPy/qljBtF4mNBxzXJvayeFg1w3OkWew/OE4OMJbLzCC2t5gvpCc6ThulPppi 7OjCh1+uAQwotYBe8dwQw3lGTBiWGiIjN5XLZsgrIC5sR1DYGqUlaDFF5veQjNw6 4ybinDFpHRbHjqkLO91hUJP1hs8= 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:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=6JC4YjQWESm+IaeeWJ6cX7 t60cg=; b=EWmM8k2L0JG67YvoPAbfnpErLUXf7BMqY8pmj6csL57nwlUEGlcGMO cd1wM24HCpKFxdFf3zmfGS2Vd5Ud5VHHzH9vcfTqNRrFmrMAJHzkk1aOaz8ajE1c 4oVG2SQVXbHWsD0IB+TdtUZZ6J9m9MSefPj9egGqhl7ryxpHfznQc= Received: (qmail 3183 invoked by alias); 30 Oct 2015 11:16:40 -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 3174 invoked by uid 89); 30 Oct 2015 11:16:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 30 Oct 2015 11:16:38 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-3-QiCgdtJ0SE2k2yRETfN9Qg-1; Fri, 30 Oct 2015 11:16:33 +0000 Received: from localhost ([10.1.2.79]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 30 Oct 2015 11:16:33 +0000 From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: Don't free dominators after sincos Date: Fri, 30 Oct 2015 11:16:33 +0000 Message-ID: <87eggcwqr2.fsf@e105548-lin.cambridge.arm.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-MC-Unique: QiCgdtJ0SE2k2yRETfN9Qg-1 sincos has always freed dominators at the end, but AFAICT they should still be up-to-date. (In particular, gimple_purge_dead_eh_edges updates the information.) Tested on x86_64-linux-gnu, arm-linux-gnueabi and aarch64-linux-gnu. OK to install? Thanks, Richard gcc/ * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free CDI_DOMINATORS. diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index 2080328..1802754 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -1857,7 +1857,6 @@ pass_cse_sincos::execute (function *fun) statistics_counter_event (fun, "sincos statements inserted", sincos_stats.inserted); - free_dominance_info (CDI_DOMINATORS); return cfg_changed ? TODO_cleanup_cfg : 0; }