Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Sounds good. The costs are a little wonky for MVE (CTLZ is legal but CTTZ is custom lowered to 3 or so instructions), but they are much better then they were before!
LGTM
Comment Actions
I guess these costs look more reasonable compared to their scalar counterparts, though I don't think we have cttz for MVE. But as a general query, if these are being scalarized why isn't the cost 16? It looks like it could just be the accumulation costs of the scalar parts. Or have I missed something?
Comment Actions
It's not scalarized. Like I said it's custom lowered to a bitreverse (plus a mov) and a ctlz so 3 instructions in general.