PATCH RFA: Change MIPS ffs<mode>2 from define_insn to define_expand
Richard Sandiford
richard@codesourcery.com
Mon Jul 11 10:19:00 GMT 2005
"Maciej W. Rozycki" <macro@linux-mips.org> writes:
> On Mon, 10 Jul 2005, Ian Lance Taylor wrote:
>> So I think either this patch or the previous one is an improvement,
>> and I think you and Eric should pick one, or should describe a
>> reasonable alternative.
>
> Hmm, how about using "clz" for MIPS32/MIPS64?
Patches welcome ;) I'm certainly not going to ask Ian to do that.
> Also have I missed anything or is the current implementation O(n)? If
> so, that's rather poor.
No, you've not missed anything. Like I say, I'm in favour of
ditching the current loop altogether.
Richard
More information about the Gcc-patches
mailing list