[PATCH] bswap: Increase search limit by 1
H.J. Lu
hjl.tools@gmail.com
Sun Mar 7 21:34:00 GMT 2010
On Tue, Jun 23, 2009 at 3:37 AM, Andreas Krebbel
<krebbel@linux.vnet.ibm.com> wrote:
> Hi,
>
> as Uros pointed out the current libgcc bswap optimizations aren't
> matched by the bswap optimizer pass. This is caused by the libgcc
> implementations using a signed argument and result type what requires
> additional type casts. Due to these the search depth limit exceeds
> and the patterns don't get recognized. This can easily be fixed by
> increasing the search limit by one.
>
> Done with the attached patch.
>
> The patch also adds the libgcc variants to the respective testcases.
>
> Bootstrapped on s390x. No regressions.
>
> Ok for mainline?
>
> Bye,
>
> -Andreas-
>
>
> 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
>
> * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
> order to match bswaps with signed source operands.
>
>
This patch caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43280
--
H.J.
More information about the Gcc-patches
mailing list