Lines Matching refs:C2
328 /// (op (cast (op X, C2)), C1) --> (cast (op X, op (C1, C2)))
329 /// (op (cast (op X, C2)), C1) --> (op (cast X), op (C1, C2))
350 Constant *C1, *C2;
352 !match(BinOp2->getOperand(1), m_Constant(C2)))
356 // Eg, if it was a trunc, we'd cast C1 to the source type because casting C2
360 // (op (cast (op X, C2)), C1) --> (op (cast X), FoldedC)
362 Constant *CastC2 = ConstantExpr::getCast(CastOpcode, C2, DestTy);
407 /// 6. Transform: "(A op C1) op (B op C2)" ==> "(A op B) op (C1 op C2)"
408 /// if C1 and C2 are constants.
526 // Transform: "(A op C1) op (B op C2)" ==> "(A op B) op (C1 op C2)"
527 // if C1 and C2 are constants.
529 Constant *C1, *C2, *CRes;
533 match(Op1, m_OneUse(m_BinOp(m_Value(B), m_Constant(C2)))) &&
534 (CRes = ConstantFoldBinaryOpOperands(Opcode, C1, C2, DL))) {