• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/

Lines Matching refs:C0

2403   // Fold (add (vscale * C0), (vscale * C1)) to (vscale * (C0 + C1)).
2405 APInt C0 = N0->getConstantOperandAPInt(0);
2407 return DAG.getVScale(DL, VT, C0 + C1);
3684 // Fold (mul (vscale * C0), C1) to (vscale * (C0 * C1)).
3687 APInt C0 = N0.getConstantOperandAPInt(0);
3689 return DAG.getVScale(SDLoc(N), VT, C0 * C1);
4720 ConstantSDNode *C0 = isConstOrConstSplat(LR);
4722 if (LL == RL && C0 && C1 && !C0->isOpaque() && !C1->isOpaque()) {
4723 // Canonicalize larger constant as C0.
4724 if (C1->getAPIntValue().ugt(C0->getAPIntValue()))
4725 std::swap(C0, C1);
4728 const APInt &C0Val = C0->getAPIntValue();
4731 // and/or (setcc X, C0, ne), (setcc X, C1, ne/eq) -->
4732 // setcc ((add X, -C1), ~(C0 - C1)), 0, ne/eq
7555 // shift (logic (shift X, C0), Y), C1 -> logic (shift X, C0+C1), (shift Y, C1)
7568 /// shift (binop X, C0), C1
7570 /// binop (shift X, C1), (shift C0, C1)
7980 // Fold (shl (vscale * C0), C1) to (vscale * (C0 << C1)).
7984 APInt C0 = N0.getConstantOperandAPInt(0);
7986 return DAG.getVScale(DL, VT, C0 << C1);
8958 // select(C0|C1, x, y) <=> select(C0, x, select(C1, x, y))
8959 // select(C0&C1, x, y) <=> select(C0, select(C1, x, y), y)
12578 if (auto *C0 = isConstOrConstSplatFP(X.getOperand(0), true)) {
12579 if (C0->isExactlyValue(+1.0))
12583 if (C0->isExactlyValue(-1.0))
13952 const APFloat &C0 = N0CFP->getValueAPF();
13954 return DAG.getConstantFP(Op(C0, C1), SDLoc(N), VT);
20421 // Replace a SCALAR_TO_VECTOR(EXTRACT_VECTOR_ELT(V,C0)) pattern
20429 if (ConstantSDNode *C0 = dyn_cast<ConstantSDNode>(EltNo)) {
20431 int Elt = C0->getZExtValue();