[llvm-dev] CTPOP and zeroes

ORiordan, Martin via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 18 00:57:40 PST 2018


Quick question.  The 'ISD::CTPOP' node allows a target to lower the counting of ones in a word to a single instruction.  Our target also has an instruction for counting the zeroes in a word.  Does CTPOP support counting of zeroes as well as ones instead of doing either "CTPOP(INVERT(operand))" or "N-bits - CTPOP(operand)"?

Thanks,

	MartinO

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.



More information about the llvm-dev mailing list