Home | History | Annotate | Download | only in SelectionDAG

Lines Matching refs:CTPOP

1399     SDValue CTPOP = N0;
1400 // Look through truncs that don't change the value of a ctpop.
1402 CTPOP = N0.getOperand(0);
1404 if (CTPOP.hasOneUse() && CTPOP.getOpcode() == ISD::CTPOP &&
1405 (N0 == CTPOP || N0.getValueType().getSizeInBits() >
1406 Log2_32_Ceil(CTPOP.getValueType().getSizeInBits()))) {
1407 EVT CTVT = CTPOP.getValueType();
1408 SDValue CTOp = CTPOP.getOperand(0);
1410 // (ctpop x) u< 2 -> (x & x-1) == 0
1411 // (ctpop x) u> 1 -> (x & x-1) != 0
1420 // TODO: (ctpop x) == 1 -> x && (x & x-1) == 0 iff ctpop is illegal.