This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Handle a + ~a in reassoc
On Wed, 14 Apr 2010, Richard Guenther wrote:
>
> Btw, did you check where and why we generate the ~a in the first
> place? It appears in the .original dump for your testcase. I suppose
> this is a folding from the pre-tree-ssa days and nowadays should
> be done during/before expansion or by combine.
fold-const.c:10773 does the folding. It was added as one of the fixes for
PR15784 in March 2005 (thus after the tree-ssa merge).
>
> Richard.
>
> > Thanks.
> > Alexander Monakov
>