This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] teach phi-opt to produce -(a COND b)
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Paolo Bonzini <bonzini at gnu dot org>
- Cc: gcc-patches at gcc dot gnu dot org, rguenther at suse dot de, ubizjak at gmail dot com
- Date: Fri, 27 Apr 2012 09:43:35 -0700
- Subject: Re: [PATCH] teach phi-opt to produce -(a COND b)
- References: <1335520861-29252-1-git-send-email-bonzini@gnu.org>
On Fri, Apr 27, 2012 at 3:01 AM, Paolo Bonzini <bonzini@gnu.org> wrote:
> This patch teaches phiopt to look at phis whose arguments are -1 and 0,
> and produce negated setcc statements.
>
> Bootstrapped/regtested x86_64-pc-linux-gnu, together with the patch
> for pr53138. ?Ok for mainline?
>
> Paolo
>
> 2012-04-27 ?Paolo Bonzini ?<bonzini@gnu.org>
>
> ? ? ? ?* tree-ssa-phiopt.c (conditional_replacement): Replace PHIs
> ? ? ? ?whose arguments are -1 and 0, by negating the result of the
> ? ? ? ?conditional.
>
This caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53144
H.J.