Home | History | Annotate | Download | only in SelectionDAG

Lines Matching refs:CTPOP

1974     SDValue CTPOP = N0;
1975 // Look through truncs that don't change the value of a ctpop.
1977 CTPOP = N0.getOperand(0);
1979 if (CTPOP.hasOneUse() && CTPOP.getOpcode() == ISD::CTPOP &&
1980 (N0 == CTPOP || N0.getValueType().getSizeInBits() >
1981 Log2_32_Ceil(CTPOP.getValueType().getSizeInBits()))) {
1982 EVT CTVT = CTPOP.getValueType();
1983 SDValue CTOp = CTPOP.getOperand(0);
1985 // (ctpop x) u< 2 -> (x & x-1) == 0
1986 // (ctpop x) u> 1 -> (x & x-1) != 0
1995 // TODO: (ctpop x) == 1 -> x && (x & x-1) == 0 iff ctpop is illegal.