From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56224 invoked by alias); 28 Oct 2016 10:49:28 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 56201 invoked by uid 89); 28 Oct 2016 10:49:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Segher, Hx-languages-length:573, additive, sk:signed 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 ESMTP; Fri, 28 Oct 2016 10:49:26 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 99C2B31B339; Fri, 28 Oct 2016 10:49:25 +0000 (UTC) Received: from localhost.localdomain (vpn1-6-203.ams2.redhat.com [10.36.6.203]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9SAnOvo022555; Fri, 28 Oct 2016 06:49:24 -0400 Subject: Re: [patch] Use straight-line sequence for signed overflow additive operation To: Eric Botcazou , gcc-patches@gcc.gnu.org References: <20524360.1RVvHARErM@polaris> From: Bernd Schmidt Message-ID: Date: Fri, 28 Oct 2016 10:49:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20524360.1RVvHARErM@polaris> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg02329.txt.bz2 On 10/27/2016 05:26 PM, Eric Botcazou wrote: > as suggested by Segher, this changes the generic signed-signed-signed case of > expand_addsub_overflow to using a straight-line code sequence instead of a > branchy one, the new sequence being also shorter. > * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when > swapping the arms of the branch. > * internal-fn.c (expand_addsub_overflow): Use a straight-line code > sequence for the generic signed-signed-signed case. Ok. Bernd