Lines Matching defs:cstA
614 /// `cmp(max/min(x, cstA), cstB)` can be folded to a constant depending on the
615 /// values of `cstA` and `cstB`, the max or min operation, and the comparison
619 const APInt &cstA,
625 APInt::getSignedMinValue(width), cstA);
629 APInt::getMinValue(width), cstA);
633 cstA, APInt::getSignedMaxValue(width));
637 cstA, APInt::getMaxValue(width));
675 // Fold `cmp(max/min(x, cstA), cstB)`.
677 IntegerAttr cstA;
679 matchPattern(lhsOp->getOperand(1), m_Constant(&cstA)) && rhs) {
681 lhsOp, cstA.getValue(), rhs.getValue(), 64, getPred());
683 foldCmpOfMaxOrMin(lhsOp, cstA.getValue().trunc(32),