This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Use straight-line sequence for signed overflow additive operation
- From: Bernd Schmidt <bschmidt at redhat dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 28 Oct 2016 12:49:23 +0200
- Subject: Re: [patch] Use straight-line sequence for signed overflow additive operation
- Authentication-results: sourceware.org; auth=none
- References: <20524360.1RVvHARErM@polaris>
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