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

References

lib/CodeGen/SelectionDAG/TargetLowering.cpp
 3058   if (SDValue Fold = DAG.FoldSetCC(VT, N0, N1, Cond, dl))
 3063   ISD::CondCode SwappedCC = ISD::getSetCCSwappedOperands(Cond);
 3090       if ((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
 3090       if ((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
 3092         if ((C1 == 0) == (Cond == ISD::SETEQ)) {
 3095           Cond = ISD::SETNE;
 3099           Cond = ISD::SETEQ;
 3103                             Zero, Cond);
 3120       if ((Cond == ISD::SETULT && C1 == 2) || (Cond == ISD::SETUGT && C1 == 1)){
 3120       if ((Cond == ISD::SETULT && C1 == 2) || (Cond == ISD::SETUGT && C1 == 1)){
 3124         ISD::CondCode CC = Cond == ISD::SETULT ? ISD::SETEQ : ISD::SETNE;
 3130           (Cond == ISD::SETEQ || Cond == ISD::SETNE)) {
 3130           (Cond == ISD::SETEQ || Cond == ISD::SETNE)) {
 3135         ISD::CondCode InvCond = ISD::getSetCCInverse(Cond, true);
 3139         SDValue RHS = DAG.getSetCC(dl, VT, And, Zero, Cond);
 3140         unsigned LogicOpcode = Cond == ISD::SETEQ ? ISD::AND : ISD::OR;
 3147     if ((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
 3147     if ((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
 3196                                 Cond == ISD::SETEQ ? ISD::SETNE : ISD::SETEQ);
 3198           return DAG.getSetCC(dl, VT, Trunc, C, Cond);
 3218           bool Inverse = (N1C->isNullValue() && Cond == ISD::SETEQ) ||
 3219                          (!N1C->isNullValue() && Cond == ISD::SETNE);
 3238         !ISD::isSignedIntSetCC(Cond) &&
 3288                               DAG.getConstant(0LL, dl, newVT), Cond);
 3301         switch (Cond) {
 3324       switch (Cond) {
 3334              isCondCodeLegal(Cond, newVT.getSimpleVT()))) {
 3340                                           NewConst, Cond);
 3349                (Cond == ISD::SETEQ || Cond == ISD::SETNE)) {
 3349                (Cond == ISD::SETEQ || Cond == ISD::SETNE)) {
 3358         return DAG.getConstant(Cond == ISD::SETNE, dl, VT);
 3377                           Cond);
 3379                 (Cond == ISD::SETEQ || Cond == ISD::SETNE)) {
 3379                 (Cond == ISD::SETEQ || Cond == ISD::SETNE)) {
 3386         bool TrueWhenTrue = (Cond == ISD::SETEQ) ^ (!N1C->isOne());
 3424                               Cond == ISD::SETEQ ? ISD::SETNE : ISD::SETEQ);
 3438           Cond = (Cond == ISD::SETEQ) ? ISD::SETNE : ISD::SETEQ;
 3438           Cond = (Cond == ISD::SETEQ) ? ISD::SETNE : ISD::SETEQ;
 3440                               Cond);
 3457                               Cond == ISD::SETEQ ? ISD::SETNE : ISD::SETEQ);
 3463                               Cond == ISD::SETEQ ? ISD::SETNE : ISD::SETEQ);
 3472         (Cond == ISD::SETEQ || Cond == ISD::SETNE)) {
 3472         (Cond == ISD::SETEQ || Cond == ISD::SETNE)) {
 3476         return DAG.getSetCC(dl, VT, N0.getOperand(0), N1, Cond);
 3480             optimizeSetCCOfSignedTruncationCheck(VT, N0, N1, Cond, DCI, dl))
 3491     if (ISD::isSignedIntSetCC(Cond)) {
 3500     if (Cond == ISD::SETGE || Cond == ISD::SETUGE) {
 3500     if (Cond == ISD::SETGE || Cond == ISD::SETUGE) {
 3508         ISD::CondCode NewCC = (Cond == ISD::SETGE) ? ISD::SETGT : ISD::SETUGT;
 3520     if (Cond == ISD::SETLE || Cond == ISD::SETULE) {
 3520     if (Cond == ISD::SETLE || Cond == ISD::SETULE) {
 3528         ISD::CondCode NewCC = (Cond == ISD::SETLE) ? ISD::SETLT : ISD::SETULT;
 3540     if (Cond == ISD::SETLT || Cond == ISD::SETULT) {
 3540     if (Cond == ISD::SETLT || Cond == ISD::SETULT) {
 3558     if (Cond == ISD::SETGT || Cond == ISD::SETUGT) {
 3558     if (Cond == ISD::SETGT || Cond == ISD::SETUGT) {
 3576     if (Cond == ISD::SETEQ || Cond == ISD::SETNE) {
 3576     if (Cond == ISD::SETEQ || Cond == ISD::SETNE) {
 3580                 VT, N0, N1, Cond, DCI, dl))
 3589       if (Cond == ISD::SETUGT &&
 3596       if (Cond == ISD::SETULT &&
 3614     if ((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
 3614     if ((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
 3620         if (Cond == ISD::SETNE && C1 == 0) {// (X & 8) != 0  -->  (X & 8) >> 3
 3629         } else if (Cond == ISD::SETEQ && C1 == AndRHS->getAPIntValue()) {
 3646       if ((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
 3646       if ((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
 3660             return DAG.getSetCC(dl, VT, Shift, CmpRHS, Cond);
 3663       } else if (Cond == ISD::SETULT || Cond == ISD::SETUGE ||
 3663       } else if (Cond == ISD::SETULT || Cond == ISD::SETUGE ||
 3664                  Cond == ISD::SETULE || Cond == ISD::SETUGT) {
 3664                  Cond == ISD::SETULE || Cond == ISD::SETUGT) {
 3665         bool AdjOne = (Cond == ISD::SETULE || Cond == ISD::SETUGT);
 3665         bool AdjOne = (Cond == ISD::SETULE || Cond == ISD::SETUGT);
 3672         ISD::CondCode NewCond = Cond;
 3676           NewCond = (Cond == ISD::SETULE) ? ISD::SETULT : ISD::SETUGE;
 3704     if (Cond == ISD::SETO || Cond == ISD::SETUO)
 3704     if (Cond == ISD::SETO || Cond == ISD::SETUO)
 3705       return DAG.getSetCC(dl, VT, N0, N0, Cond);
 3709       ISD::CondCode SwapCond = ISD::getSetCCSwappedOperands(Cond);
 3719     if (!isCondCodeLegal(Cond, N0.getSimpleValueType())) {
 3725           if (Cond == ISD::SETOEQ &&
 3728           if (Cond == ISD::SETUEQ &&
 3731           if (Cond == ISD::SETUNE &&
 3734           if (Cond == ISD::SETONE &&
 3738           if (Cond == ISD::SETOEQ &&
 3741           if (Cond == ISD::SETUEQ &&
 3744           if (Cond == ISD::SETUNE &&
 3747           if (Cond == ISD::SETONE &&
 3761     bool EqTrue = ISD::isTrueWhenEqual(Cond);
 3762     unsigned UOF = ISD::getUnorderedFlavor(Cond);
 3770     if (NewCond != Cond &&
 3776   if ((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
 3776   if ((Cond == ISD::SETEQ || Cond == ISD::SETNE) &&
 3783           return DAG.getSetCC(dl, VT, N0.getOperand(1), N1.getOperand(1), Cond);
 3785           return DAG.getSetCC(dl, VT, N0.getOperand(0), N1.getOperand(0), Cond);
 3790                                 Cond);
 3793                                 Cond);
 3808                                 dl, N0.getValueType()), Cond);
 3821                              Cond);
 3832                            Cond);
 3846         if (SDValue V = foldSetCCWithBinOp(VT, N0, N1, Cond, dl, DCI))
 3852       if (SDValue V = foldSetCCWithBinOp(VT, N1, N0, Cond, dl, DCI))
 3855     if (SDValue V = foldSetCCWithAnd(VT, N0, N1, Cond, dl, DCI))
 3861       N0.hasOneUse() && (Cond == ISD::SETEQ || Cond == ISD::SETNE)) {
 3861       N0.hasOneUse() && (Cond == ISD::SETEQ || Cond == ISD::SETNE)) {
 3868         if (SDValue Folded = buildUREMEqFold(VT, N0, N1, Cond, DCI, dl))
 3871         if (SDValue Folded = buildSREMEqFold(VT, N0, N1, Cond, DCI, dl))
 3880     switch (Cond) {