This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Propagate out predicate inversions in forwprop


On Wed, Sep 7, 2011 at 4:46 AM, Richard Guenther <rguenther@suse.de> wrote:
>
> This makes sure that we propagate comparisons that we cannot invert
> into inverted conditions by swapping edges or the conditional ops.
> For the testcase it transforms
>
> <bb 2>:
> ÂD.2724_4 = xx_2(D) < xy_3(D);
> Âp_5 = (int) D.2724_4;
> ÂD.2725_6 = p_5 == 0;
> Ânp_7 = (int) D.2725_6;
> Âif (np_7 != 0)
>
> to
>
> <bb 2>:
> Âif (xx_2(D) < xy_3(D))
>
> while without the patch we would be left with
>
> <bb 2>:
> ÂD.2724_4 = xx_2(D) < xy_3(D);
> Âif (D.2724_4 == 0)


This sounds like PR 15558.

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]