Home | History | Annotate | Download | only in SelectionDAG

Lines Matching full:magics

2480   APInt::ms magics = d.magic();
2488 DAG.getConstant(magics.m, VT));
2493 DAG.getConstant(magics.m, VT)).getNode(), 1);
2497 if (d.isStrictlyPositive() && magics.m.isNegative()) {
2503 if (d.isNegative() && magics.m.isStrictlyPositive()) {
2509 if (magics.s > 0) {
2511 DAG.getConstant(magics.s, getShiftAmountTy(Q.getValueType())));
2542 APInt::mu magics = N1C.magicu();
2548 if (magics.a != 0 && !N1C[0]) {
2556 magics = N1C.lshr(Shift).magicu(Shift);
2557 assert(magics.a == 0 && "Should use cheap fixup now");
2564 Q = DAG.getNode(ISD::MULHU, dl, VT, Q, DAG.getConstant(magics.m, VT));
2568 DAG.getConstant(magics.m, VT)).getNode(), 1);
2574 if (magics.a == 0) {
2575 assert(magics.s < N1C.getBitWidth() &&
2578 DAG.getConstant(magics.s, getShiftAmountTy(Q.getValueType())));
2591 DAG.getConstant(magics.s-1, getShiftAmountTy(NPQ.getValueType())));