From patchwork Mon Feb 14 04:17:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Pop X-Patchwork-Id: 83028 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]) by ozlabs.org (Postfix) with SMTP id 844F1B7120 for ; Mon, 14 Feb 2011 15:17:40 +1100 (EST) Received: (qmail 6730 invoked by alias); 14 Feb 2011 04:17:33 -0000 Received: (qmail 6721 invoked by uid 22791); 14 Feb 2011 04:17:31 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Feb 2011 04:17:27 +0000 Received: by ywi6 with SMTP id 6so2064497ywi.20 for ; Sun, 13 Feb 2011 20:17:25 -0800 (PST) Received: by 10.236.110.14 with SMTP id t14mr301211yhg.57.1297657045714; Sun, 13 Feb 2011 20:17:25 -0800 (PST) Received: from napoca (adsl-76-233-37-90.dsl.austtx.sbcglobal.net [76.233.37.90]) by mx.google.com with ESMTPS id g27sm1288600yhc.8.2011.02.13.20.17.23 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 13 Feb 2011 20:17:25 -0800 (PST) Received: by napoca (sSMTP sendmail emulation); Sun, 13 Feb 2011 22:17:22 -0600 From: Sebastian Pop To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de, Sebastian Pop Subject: [PATCH 1/3] Remove redundant call to force_gimple_operand. Date: Sun, 13 Feb 2011 22:17:00 -0600 Message-Id: <1297657022-27675-2-git-send-email-sebpop@gmail.com> In-Reply-To: <1297657022-27675-1-git-send-email-sebpop@gmail.com> References: <1297657022-27675-1-git-send-email-sebpop@gmail.com> X-IsSubscribed: yes 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 2011-02-08 Sebastian Pop * tree-parloops.c (gen_parallel_loop): Remove redundant call to force_gimple_operand. --- gcc/ChangeLog | 5 +++++ gcc/tree-parloops.c | 10 +--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c4f256b..52523ac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-02-12 Sebastian Pop + + * tree-parloops.c (gen_parallel_loop): Remove redundant call to + force_gimple_operand. + 2011-02-08 Sebastian Pop PR tree-optimization/46834 diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c index 9a11f80..19dff68 100644 --- a/gcc/tree-parloops.c +++ b/gcc/tree-parloops.c @@ -1780,17 +1780,9 @@ gen_parallel_loop (struct loop *loop, htab_t reduction_list, invert_truthvalue (unshare_expr (niter->may_be_zero)), many_iterations_cond); many_iterations_cond - = force_gimple_operand (many_iterations_cond, &stmts, false, NULL_TREE); + = force_gimple_operand (many_iterations_cond, &stmts, true, NULL_TREE); if (stmts) gsi_insert_seq_on_edge_immediate (loop_preheader_edge (loop), stmts); - if (!is_gimple_condexpr (many_iterations_cond)) - { - many_iterations_cond - = force_gimple_operand (many_iterations_cond, &stmts, - true, NULL_TREE); - if (stmts) - gsi_insert_seq_on_edge_immediate (loop_preheader_edge (loop), stmts); - } initialize_original_copy_tables ();