From patchwork Wed Sep 7 12:59:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrill Tkachov X-Patchwork-Id: 666998 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 3sTk864tsMz9s1h for ; Wed, 7 Sep 2016 22:59:50 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=XOfBgbdU; 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 :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=G0jceP8/oRgVIzKRdIkP7UFQ0M/GRQsB9M5d6R73hU/pBy dCRIsevSYsIv6dRVUoPSA4OYdJRyAiC+DY+AkZVvD0MDNqkcW8A/xfiq8bwEzMSr i+v0NvFqSG9lJKMlBYiieZ8yB+tqzkTAGTKgqshgf7c3klMbKJf5OurN5mH2g= 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 :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=Ko+I5vTQKrhAYjWEt5nNLqYXz9c=; b=XOfBgbdUefGKLdkb3xE/ 35c21otY+fov/FMLoUg0n+SX3+llOMlk5aqaELBkzr3100YUyzC5scRlfc3Rh5QL tNzXQvnXrnV0ACBzICSyL+Y7S2YI2TnPXmCSgmRp8rS33NEDaOb+lOrU7hsx1ukX gq/x5WYxSXIs83SdHxRf86Q= Received: (qmail 130010 invoked by alias); 7 Sep 2016 12:59:42 -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 129994 invoked by uid 89); 7 Sep 2016 12:59:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=sk:kyrylo, kyrylo, kyrylotkachovarmcom, kyrylo.tkachov@arm.com X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Sep 2016 12:59:34 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BBCABF0 for ; Wed, 7 Sep 2016 05:59:32 -0700 (PDT) Received: from [10.2.207.77] (e100706-lin.cambridge.arm.com [10.2.207.77]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6D3BE3F211 for ; Wed, 7 Sep 2016 05:59:32 -0700 (PDT) Message-ID: <57D00F32.9010801@foss.arm.com> Date: Wed, 07 Sep 2016 13:59:30 +0100 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: GCC Patches Subject: [PATCH][expmed.c] PR middle-end/77426 Delete duplicate condition in synth_mult Hi all, The duplicate mode check in synth can just be deleted IMO. It was introduced as part of r139821 that was a much larger change introducing size/speed differentiation to the RTL midend. So I think it's just a typo/copy-pasto. Tested on aarch64-none-elf. Ok? Thanks, Kyrill 2016-09-07 Kyrylo Tkachov PR middle-end/77426 * expmed.c (synth_mult): Delete duplicate mode check. diff --git a/gcc/expmed.c b/gcc/expmed.c index 1cedf023c8e8916d887bd3a9d9a723e3cc2354f7..a5da8836f21debcda3b834cb869348ea6cb33414 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -2572,7 +2572,6 @@ synth_mult (struct algorithm *alg_out, unsigned HOST_WIDE_INT t, entry_ptr = alg_hash_entry_ptr (hash_index); if (entry_ptr->t == t && entry_ptr->mode == mode - && entry_ptr->mode == mode && entry_ptr->speed == speed && entry_ptr->alg != alg_unknown) {