Hi Andrew, > I should note popcount has a similar issue which I hope to fix next week. > Popcount cost is used during expand so it is very useful to be slightly more > correct.
It's useful to set the cost so that all of the special cases still apply - even if popcount is relatively fast, it's still better to use ALU ops with higher throughput whenever possible. Cheers, Wilco