reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  678       if (LegalOperations)
 1043   TargetLowering::TargetLoweringOpt TLO(DAG, LegalTypes, LegalOperations);
 1067   TargetLowering::TargetLoweringOpt TLO(DAG, LegalTypes, LegalOperations);
 1172   if (!LegalOperations)
 1237   if (!LegalOperations)
 1286   if (!LegalOperations)
 1314   if (!LegalOperations)
 1396   LegalOperations = Level >= AfterLegalizeVectorOps;
 2138       if ((!LegalOperations ||
 2308   if ((!LegalOperations || TLI.isOperationLegal(ISD::OR, VT)) &&
 2691     if (!LegalOperations ||
 2872     return tryFoldToZero(DL, TLI, VT, DAG, LegalOperations);
 2901         if (!LegalOperations || TLI.isOperationLegal(NewSh, VT))
 3112     if (!LegalOperations && TLI.isOffsetFoldingLegal(GA)) {
 3137   if (!LegalOperations && N1.getOpcode() == ISD::SRL && N1.hasOneUse()) {
 3285     if (!LegalOperations ||
 4060   if (!HiExists && (!LegalOperations ||
 4068   if (!LoExists && (!LegalOperations ||
 4084         (!LegalOperations ||
 4094         (!LegalOperations ||
 4281     if ((VT.isVector() || LegalOperations) &&
 4304     if (LegalOperations && !TLI.isOperationLegal(LogicOpcode, XVT))
 4385       ShOp = tryFoldToZero(DL, TLI, VT, DAG, LegalOperations);
 4398       ShOp = tryFoldToZero(DL, TLI, VT, DAG, LegalOperations);
 4430   if (LegalOperations || VT.getScalarType() != MVT::i1)
 4549         (!LegalOperations ||
 4668       (!LegalOperations ||
 4684   if (LegalOperations &&
 4735     if (LegalOperations &&
 4763     if (LegalOperations &&
 5296         ((!LegalOperations && LN0->isSimple()) ||
 5327   if (!LegalOperations)
 5551   if (!LegalOperations)
 5609   if (!LegalOperations && (N0.isUndef() || N1.isUndef()))
 5837   if ((!LegalOperations || TLI.isOperationLegal(ISD::ADD, VT)) &&
 6495   if (LegalOperations && !TLI.isOperationLegal(ISD::STORE, VT))
 6588   if (NeedsBswap && LegalOperations && !TLI.isOperationLegal(ISD::BSWAP, VT))
 6662   if (LegalOperations && !TLI.isOperationLegal(ISD::LOAD, VT))
 6753   if (NeedsBswap && LegalOperations && !TLI.isOperationLegal(ISD::BSWAP, VT))
 6908     if (!LegalOperations ||
 7015     return tryFoldToZero(DL, TLI, VT, DAG, LegalOperations);
 7570     if ((!LegalOperations ||
 8062   if (!LegalOperations || TLI.isOperationLegal(ISD::CTLZ_ZERO_UNDEF, VT)) {
 8089   if (!LegalOperations || TLI.isOperationLegal(ISD::CTTZ_ZERO_UNDEF, VT)) {
 8235   if (CondVT == MVT::i1 && !LegalOperations) {
 8468     if (!LegalOperations && TLI.isOperationLegalOrCustom(ISD::UADDO, VT) &&
 8493         (!LegalOperations &&
 9168       (LegalOperations && !TLI.isOperationLegal(N0.getOpcode(), VT)))
 9175       (LegalOperations && !TLI.isOperationLegal(N1.getOpcode(), VT)))
 9247   if (LegalOperations || !TLI.isOperationLegalOrCustom(ISD::VSELECT, VT))
 9462     if (!LegalOperations || TLI.isOperationLegal(ISD::SIGN_EXTEND_INREG,
 9475           tryToFoldExtOfLoad(DAG, *this, TLI, VT, LegalOperations, N, N0,
 9491           DAG, *this, TLI, VT, LegalOperations, N, N0, ISD::SEXTLOAD))
 9500       (!LegalOperations && TLI.isOperationLegal(N0.getOpcode(), VT))) {
 9539   if (SDValue V = foldExtendedSignBitTest(N, DAG, LegalOperations))
 9550     if (VT.isVector() && !LegalOperations &&
 9606           (!LegalOperations || TLI.isOperationLegal(ISD::SETCC, N00VT))) {
 9614   if ((!LegalOperations || TLI.isOperationLegal(ISD::ZERO_EXTEND, VT)) &&
 9749       if (!LegalOperations || (TLI.isOperationLegal(ISD::AND, SrcVT) &&
 9761     if (!LegalOperations || TLI.isOperationLegal(ISD::AND, VT)) {
 9791           tryToFoldExtOfLoad(DAG, *this, TLI, VT, LegalOperations, N, N0,
 9813       (!LegalOperations && TLI.isOperationLegal(N0.getOpcode(), VT))) {
 9871           DAG, *this, TLI, VT, LegalOperations, N, N0, ISD::ZEXTLOAD))
 9874   if (SDValue V = foldExtendedSignBitTest(N, DAG, LegalOperations))
 9879     if (!LegalOperations && VT.isVector() &&
10046     if (!LegalOperations || TLI.isLoadExtLegal(ExtType, VT, MemVT)) {
10063     if (VT.isVector() && !LegalOperations) {
10405         (!LegalOperations || TLI.isOperationLegal(ISD::SIGN_EXTEND, VT)))
10414     if (!LegalOperations ||
10425         (!LegalOperations || TLI.isOperationLegal(ISD::SIGN_EXTEND, VT)))
10465       ((!LegalOperations && cast<LoadSDNode>(N0)->isSimple() &&
10482       ((!LegalOperations && cast<LoadSDNode>(N0)->isSimple()) &&
10588       LegalTypes && !LegalOperations && N0->hasOneUse() && VT != MVT::i1) {
10614     if ((!LegalOperations || TLI.isOperationLegal(ISD::SELECT, SrcVT)) &&
10626       (!LegalOperations || TLI.isOperationLegal(ISD::SHL, VT)) &&
10645   if (N0.getOpcode() == ISD::BUILD_VECTOR && !LegalOperations &&
10771         (!LegalOperations ||
10793       ((!LegalOperations && N0.getOpcode() == ISD::ADDCARRY) ||
10832     if (!LegalOperations && N0.hasOneUse() &&
10883         (!LegalOperations || TLI.isOperationLegal(ISD::LOAD, VT)))
10965        (!LegalOperations && VT.isInteger() && N0.getValueType().isInteger() &&
10977     if (!LegalOperations ||
11003       ((!LegalOperations && cast<LoadSDNode>(N0)->isSimple()) ||
11333   bool HasFMAD = (LegalOperations && TLI.isOperationLegal(ISD::FMAD, VT));
11338       (!LegalOperations || TLI.isOperationLegalOrCustom(ISD::FMA, VT));
11544   bool HasFMAD = (LegalOperations && TLI.isOperationLegal(ISD::FMAD, VT));
11549       (!LegalOperations || TLI.isOperationLegalOrCustom(ISD::FMA, VT));
11847       (!LegalOperations || TLI.isOperationLegalOrCustom(ISD::FMA, VT));
11852                  (LegalOperations && TLI.isOperationLegal(ISD::FMAD, VT));
11952   if ((!LegalOperations || TLI.isOperationLegalOrCustom(ISD::FSUB, VT)) &&
11953       TLI.isNegatibleForFree(N1, DAG, LegalOperations, ForCodeSize) == 2)
11956         TLI.getNegatedExpression(N1, DAG, LegalOperations, ForCodeSize), Flags);
11959   if ((!LegalOperations || TLI.isOperationLegalOrCustom(ISD::FSUB, VT)) &&
11960       TLI.isNegatibleForFree(N0, DAG, LegalOperations, ForCodeSize) == 2)
11963         TLI.getNegatedExpression(N0, DAG, LegalOperations, ForCodeSize), Flags);
12142       if (TLI.isNegatibleForFree(N1, DAG, LegalOperations, ForCodeSize))
12143         return TLI.getNegatedExpression(N1, DAG, LegalOperations, ForCodeSize);
12144       if (!LegalOperations || TLI.isOperationLegal(ISD::FNEG, VT))
12161   if (TLI.isNegatibleForFree(N1, DAG, LegalOperations, ForCodeSize))
12164         TLI.getNegatedExpression(N1, DAG, LegalOperations, ForCodeSize), Flags);
12179           TLI.isNegatibleForFree(X, DAG, LegalOperations, ForCodeSize))
12181             TLI.isNegatibleForFree(Y, DAG, LegalOperations, ForCodeSize))
12257     if (!LegalOperations || TLI.isOperationLegal(ISD::FNEG, VT))
12263         TLI.getNegatedExpression(N0, DAG, LegalOperations, ForCodeSize);
12265         TLI.getNegatedExpression(N1, DAG, LegalOperations, ForCodeSize);
12348         TLI.getNegatedExpression(N0, DAG, LegalOperations, ForCodeSize);
12350         TLI.getNegatedExpression(N1, DAG, LegalOperations, ForCodeSize);
12401         (!LegalOperations || TLI.isOperationLegal(ISD::FNEG, VT))) {
12548           (!LegalOperations ||
12611         TLI.getNegatedExpression(N0, DAG, LegalOperations, ForCodeSize),
12612         TLI.getNegatedExpression(N1, DAG, LegalOperations, ForCodeSize), Flags);
12680       if (!LegalOperations || TLI.isOperationLegal(ISD::FABS, VT))
12683       if (!LegalOperations || TLI.isOperationLegal(ISD::FNEG, VT))
12835       (!LegalOperations ||
12849   if (TLI.isOperationLegalOrCustom(ISD::SELECT_CC, VT) || !LegalOperations) {
12853         (!LegalOperations ||
12867         (!LegalOperations ||
12896       (!LegalOperations ||
12910   if (TLI.isOperationLegalOrCustom(ISD::SELECT_CC, VT) || !LegalOperations) {
12913         (!LegalOperations ||
13166   if (TLI.isNegatibleForFree(N0, DAG, LegalOperations, ForCodeSize))
13167     return TLI.getNegatedExpression(N0, DAG, LegalOperations, ForCodeSize);
16071     if ((isTypeLegal(MVT::i32) && !LegalOperations && ST->isSimple()) ||
16082     if ((TLI.isTypeLegal(MVT::i64) && !LegalOperations &&
16140     if (((!LegalOperations && ST->isSimple()) ||
16642   if (LegalOperations && !TLI.isOperationLegal(ISD::BUILD_VECTOR, VT))
16884   if (SDValue BO = scalarizeExtractedBinop(N, DAG, LegalOperations))
16924     if (!LegalOperations ||
16980   if (!LegalOperations && !IndexC && VecOp.hasOneUse() &&
16990   if (!LegalOperations || !IndexC)
17215         if (LegalOperations &&
17374   if (LegalOperations && !TLI.isOperationLegal(ISD::VECTOR_SHUFFLE, VT))
17578   if (LegalOperations)
17639   if (!LegalOperations) {
17872     if (!LegalOperations && Scalar.getOpcode() == ISD::SCALAR_TO_VECTOR &&
18976   if (SDValue V = combineShuffleToVectorExtend(SVN, DAG, TLI, LegalOperations))
19455   if (LegalOperations)
20100       (!LegalOperations || TLI.isOperationLegal(ISD::SETCC, CmpOpVT))) {
20160             (!LegalOperations || TLI.isOperationLegal(ISD::CTTZ, VT)))
20167             (!LegalOperations || TLI.isOperationLegal(ISD::CTLZ, VT)))
20196   if (SDValue S = TLI.BuildSDIV(N, DAG, LegalOperations, Built)) {
20237   if (SDValue S = TLI.BuildUDIV(N, DAG, LegalOperations, Built)) {