This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Simplify rules for ctz/clz patterns and RTL
>
> Is popcount really slow on PowerPC? (Compared to clz?) Ideally one
> would choose between the two expansions based on RTL costs, but the only
> architectures it matters for are i386 and powerpc, and neither of them
> define the cost of either clz or popcount.
Of course adding a popcount/clz cost into i386 cost tables is easy and
probably most correct thing to do :)
Honza
>
> zw