From patchwork Thu Oct 29 15:19:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 537906 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 BE8C5140D9D for ; Fri, 30 Oct 2015 02:19:31 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=uWhXdPSa; 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=H+gfOmPvomaICVsw 4FFUQ/4VS1AO2aW3QI3CecECsHFPPAMr4AvYai2OqzntB/reSswhiY5DYZTD1thX ynxFT5aa2uGzsMhJ9LUtrFMfEYRPAv0zaJtpCMymq9xKgJM7Mj3KAaX01hiFTvqh scCFtrYnIw2wkTTtOdqpo7UUpTE= 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=efqwTMTxsAIToIEuwPCF+F fU8ZI=; b=uWhXdPSa/Qtzadb9JDIMmjAOSIJlNdef617znL9S7mU+F/sfMZt9e1 EselYCH0Lp6FQL3gGBSnOP5VTCsJq2kfcUacVs+wZYBJi+AqpdKasSUWPrcv8aKP 12y3ueujvW2NPOuWgWhBo668Ll4w6pk/X1G2KY9nCCL0CiFulnt2M= Received: (qmail 101159 invoked by alias); 29 Oct 2015 15:19:24 -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 101145 invoked by uid 89); 29 Oct 2015 15:19:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 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; Thu, 29 Oct 2015 15:19:23 +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-27-Jc6jUEPqTfK_syuqlAXI3g-1; Thu, 29 Oct 2015 15:19:17 +0000 Received: from localhost ([10.1.2.79]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 29 Oct 2015 15:19:17 +0000 From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [committed] Remove unnecessary label from tree-call-cdce.c Date: Thu, 29 Oct 2015 15:19:16 +0000 Message-ID: <87r3kdu2h7.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: Jc6jUEPqTfK_syuqlAXI3g-1 Tested on x86_64-linux-gnu, arm-linux-gnueabi and aarch64-linux-gnu. Committed as preapproved by Richard B. Thanks, Richard gcc/ * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove unnecessary label. diff --git a/gcc/tree-call-cdce.c b/gcc/tree-call-cdce.c index 112a325..e68d03d 100644 --- a/gcc/tree-call-cdce.c +++ b/gcc/tree-call-cdce.c @@ -724,8 +724,6 @@ shrink_wrap_one_built_in_call (gcall *bi_call) unsigned ci; gimple *cond_expr = NULL; gimple *cond_expr_start; - tree bi_call_label_decl; - gimple *bi_call_label; auto_vec conds; gen_shrink_wrap_conditions (bi_call, conds, &nconds); @@ -774,11 +772,6 @@ shrink_wrap_one_built_in_call (gcall *bi_call) ci++; gcc_assert (cond_expr && gimple_code (cond_expr) == GIMPLE_COND); - /* Now the label. */ - bi_call_label_decl = create_artificial_label (gimple_location (bi_call)); - bi_call_label = gimple_build_label (bi_call_label_decl); - gsi_insert_before (&bi_call_bsi, bi_call_label, GSI_SAME_STMT); - bi_call_in_edge0 = split_block (bi_call_bb, cond_expr); bi_call_in_edge0->flags &= ~EDGE_FALLTHRU; bi_call_in_edge0->flags |= EDGE_TRUE_VALUE;