| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 661 Value *CmpRHS = IC->getOperand(1); in foldSelectICmpLshrAshr() local 668 !match(CmpRHS, in foldSelectICmpLshrAshr() 671 !match(CmpRHS, in foldSelectICmpLshrAshr() 721 Value *CmpRHS = IC->getOperand(1); in foldSelectICmpAndBinOp() local 727 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndBinOp() 1305 if (TrueVal != CmpRHS && in foldSelectValueEquivalence() 1709 if (CmpRHS != CmpLHS && isa<Constant>(CmpRHS) && !isa<Constant>(CmpLHS)) { in foldSelectInstWithICmp() 1712 replaceOperand(SI, 1, CmpRHS); in foldSelectInstWithICmp() 1716 replaceOperand(SI, 2, CmpRHS); in foldSelectInstWithICmp() 1749 match(CmpRHS, m_Zero())) { in foldSelectInstWithICmp() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | SwitchLoweringUtils.h | 127 const Value *CmpLHS, *CmpMHS, *CmpRHS; member 149 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs), in CC() 161 CmpRHS(cmprhs), TrueBB(truebb), FalseBB(falsebb), ThisBB(me),
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 4434 Value *CmpLHS, *CmpRHS; in computeKnownFPClass() local 7366 if (CmpRHS == FalseVal) { in matchFastFloatClamp() 7376 if (CmpRHS != TrueVal || !match(CmpRHS, m_APFloat(FC1)) || !FC1->isFinite()) in matchFastFloatClamp() 7414 if (CmpRHS != TrueVal) { in matchClamp() 7419 if (CmpRHS == TrueVal && match(CmpRHS, m_APInt(C1))) { in matchClamp() 7470 std::swap(CmpLHS, CmpRHS); in matchMinMaxOfMinMax() 7478 std::swap(CmpLHS, CmpRHS); in matchMinMaxOfMinMax() 7670 if (match(CmpRHS, m_AnyZeroFP()) && CmpRHS != OutputZeroVal) { in matchSelectPattern() 7672 CmpRHS = OutputZeroVal; in matchSelectPattern() 7678 RHS = CmpRHS; in matchSelectPattern() [all …]
|
| H A D | InstructionSimplify.cpp | 2617 LHS == CmpRHS && RHS == CmpLHS) in extractEquivalentCondition() 4511 if (CmpRHS == TVal || CmpRHS == FVal) { in simplifyCmpSelOfMaxMin() 4512 std::swap(CmpLHS, CmpRHS); in simplifyCmpSelOfMaxMin() 4524 Value *X = CmpLHS, *Y = CmpRHS; in simplifyCmpSelOfMaxMin() 4586 if (!decomposeBitTestICmp(CmpLHS, CmpRHS, Pred, X, Mask)) in simplifySelectWithFakeICmpEq() 4599 if (simplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, Q, in simplifySelectWithICmpEq() 4603 if (simplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, Q, in simplifySelectWithICmpEq() 4618 Value *CmpLHS, *CmpRHS; in simplifySelectWithICmpCond() local 4648 if (Pred == ICmpInst::ICMP_EQ && match(CmpRHS, m_Zero())) { in simplifySelectWithICmpCond() 4710 match(CmpRHS, m_Zero())) { in simplifySelectWithICmpCond() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | GVN.cpp | 2082 Value *CmpRHS = CmpI->getOperand(1); in processAssumeIntrinsic() local 2088 if (isa<Constant>(CmpLHS) && !isa<Constant>(CmpRHS)) in processAssumeIntrinsic() 2089 std::swap(CmpLHS, CmpRHS); in processAssumeIntrinsic() 2090 if (!isa<Instruction>(CmpLHS) && isa<Instruction>(CmpRHS)) in processAssumeIntrinsic() 2091 std::swap(CmpLHS, CmpRHS); in processAssumeIntrinsic() 2092 if ((isa<Argument>(CmpLHS) && isa<Argument>(CmpRHS)) || in processAssumeIntrinsic() 2097 uint32_t RVN = VN.lookupOrAdd(CmpRHS); in processAssumeIntrinsic() 2099 std::swap(CmpLHS, CmpRHS); in processAssumeIntrinsic() 2104 if (isa<Constant>(CmpLHS) && isa<Constant>(CmpRHS)) in processAssumeIntrinsic() 2109 << *CmpRHS << " in block " in processAssumeIntrinsic() [all …]
|
| H A D | GuardWidening.cpp | 811 const Value *CmpLHS = IC->getOperand(0), *CmpRHS = IC->getOperand(1); in parseRangeChecks() local 813 std::swap(CmpLHS, CmpRHS); in parseRangeChecks() 818 CmpLHS, cast<ConstantInt>(ConstantInt::getNullValue(CmpRHS->getType())), in parseRangeChecks() 819 CmpRHS, IC); in parseRangeChecks()
|
| H A D | LoopIdiomRecognize.cpp | 2224 Value *CmpLHS, *CmpRHS; in detectShiftUntilBitTestIdiom() local 2227 m_Br(m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)), in detectShiftUntilBitTestIdiom() 2236 return ICmpInst::isEquality(Pred) && match(CmpRHS, m_Zero()) && in detectShiftUntilBitTestIdiom() 2245 return ICmpInst::isEquality(Pred) && match(CmpRHS, m_Zero()) && in detectShiftUntilBitTestIdiom() 2252 return llvm::decomposeBitTestICmp(CmpLHS, CmpRHS, Pred, CurrX, Mask) && in detectShiftUntilBitTestIdiom()
|
| H A D | JumpThreading.cpp | 750 Value *CmpRHS = Cmp->getOperand(1); in computeValueKnownInPredecessorsImpl() local 755 PN = dyn_cast<PHINode>(CmpRHS); in computeValueKnownInPredecessorsImpl() 768 RHS = CmpRHS->DoPHITranslation(BB, PredBB); in computeValueKnownInPredecessorsImpl() 801 if (isa<Constant>(CmpRHS) && !CmpType->isVectorTy()) { in computeValueKnownInPredecessorsImpl() 802 Constant *CmpConst = cast<Constant>(CmpRHS); in computeValueKnownInPredecessorsImpl()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86FastISel.cpp | 1658 const Value *CmpRHS = CI->getOperand(1); in X86SelectBranch() local 1667 CmpRHS = CmpLHS; in X86SelectBranch() 1698 std::swap(CmpLHS, CmpRHS); in X86SelectBranch() 2067 const Value *CmpRHS = CI->getOperand(1); in X86FastEmitCMoveSelect() local 2069 std::swap(CmpLHS, CmpRHS); in X86FastEmitCMoveSelect() 2162 const Value *CmpRHS = CI->getOperand(1); in X86FastEmitSSESelect() local 2171 CmpRHS = CmpLHS; in X86FastEmitSSESelect() 2181 std::swap(CmpLHS, CmpRHS); in X86FastEmitSSESelect() 2189 Register CmpRHSReg = getRegForValue(CmpRHS); in X86FastEmitSSESelect() 2301 const Value *CmpRHS = CI->getOperand(1); in X86FastEmitPseudoSelect() local [all …]
|
| H A D | X86ISelLowering.cpp | 45370 SDValue CmpRHS = Cmp.getOperand(1); in combineSetCCAtomicArith() local 45389 auto *CmpRHSC = dyn_cast<ConstantSDNode>(CmpRHS); in combineSetCCAtomicArith() 45430 /*RHS*/ DAG.getConstant(NegAddend, SDLoc(CmpRHS), CmpVT), in combineSetCCAtomicArith()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 554 Cases[0].CmpRHS == Cases[1].CmpRHS) || in shouldEmitAsBranches() 555 (Cases[0].CmpRHS == Cases[1].CmpLHS && in shouldEmitAsBranches() 556 Cases[0].CmpLHS == Cases[1].CmpRHS)) { in shouldEmitAsBranches() 562 if (Cases[0].CmpRHS == Cases[1].CmpRHS && in shouldEmitAsBranches() 564 isa<Constant>(Cases[0].CmpRHS) && in shouldEmitAsBranches() 565 cast<Constant>(Cases[0].CmpRHS)->isNullValue()) { in shouldEmitAsBranches() 923 const auto *CI = dyn_cast<ConstantInt>(CB.CmpRHS); in emitSwitchCase() 931 Register CondRHS = getOrCreateVReg(*CB.CmpRHS); in emitSwitchCase() 944 const APInt& High = cast<ConstantInt>(CB.CmpRHS)->getValue(); in emitSwitchCase() 948 Register CondRHS = getOrCreateVReg(*CB.CmpRHS); in emitSwitchCase()
|
| H A D | CombinerHelper.cpp | 6137 Register CmpLHS, CmpRHS; in matchFPSelectToMinMax() local 6144 computeRetValAgainstNaN(CmpLHS, CmpRHS, CmpInst::isOrdered(Pred)); in matchFPSelectToMinMax() 6147 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchFPSelectToMinMax() 6148 std::swap(CmpLHS, CmpRHS); in matchFPSelectToMinMax() 6155 if (TrueVal != CmpLHS || FalseVal != CmpRHS) in matchFPSelectToMinMax() 6169 KnownNonZeroSide = getFConstantVRegValWithLookThrough(CmpRHS, MRI); in matchFPSelectToMinMax() 6175 B.buildInstr(Opc, {Dst}, {CmpLHS, CmpRHS}); in matchFPSelectToMinMax() 6583 Register CmpRHS = Cmp->getRHSReg(); in tryFoldSelectToIntMinMax() local 6586 if (True == CmpRHS && False == CmpLHS) { in tryFoldSelectToIntMinMax() 6587 std::swap(CmpLHS, CmpRHS); in tryFoldSelectToIntMinMax() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 2037 Value *CmpRHS; in calculatePostIncRange() local 2039 m_Value(CmpRHS)))) in calculatePostIncRange() 2045 auto CmpRHSRange = SE->getSignedRange(SE->getSCEV(CmpRHS)); in calculatePostIncRange()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 2572 Cases[0].CmpRHS == Cases[1].CmpRHS) || in ShouldEmitAsBranches() 2573 (Cases[0].CmpRHS == Cases[1].CmpLHS && in ShouldEmitAsBranches() 2574 Cases[0].CmpLHS == Cases[1].CmpRHS)) { in ShouldEmitAsBranches() 2580 if (Cases[0].CmpRHS == Cases[1].CmpRHS && in ShouldEmitAsBranches() 2582 isa<Constant>(Cases[0].CmpRHS) && in ShouldEmitAsBranches() 2583 cast<Constant>(Cases[0].CmpRHS)->isNullValue()) { in ShouldEmitAsBranches() 2664 ExportFromCurrentBlock(SL->SwitchCases[i].CmpRHS); in visitBr() 2717 if (CB.CmpRHS == ConstantInt::getTrue(*DAG.getContext()) && in visitSwitchCase() 2720 else if (CB.CmpRHS == ConstantInt::getFalse(*DAG.getContext()) && in visitSwitchCase() 2725 SDValue CondRHS = getValue(CB.CmpRHS); in visitSwitchCase() [all …]
|
| H A D | TargetLowering.cpp | 5080 SDValue CmpRHS = DAG.getConstant(C1.lshr(ShiftBits), dl, ShValTy); in SimplifySetCC() local 5081 return DAG.getSetCC(dl, VT, Shift, CmpRHS, Cond); in SimplifySetCC() 5108 SDValue CmpRHS = DAG.getConstant(NewC, dl, ShValTy); in SimplifySetCC() local 5109 return DAG.getSetCC(dl, VT, Shift, CmpRHS, NewCond); in SimplifySetCC()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelDAGToDAG.cpp | 4862 SDValue CmpRHS = N->getOperand(3); in tryFoldSWTestBRCC() local 4863 if (!isNullConstant(CmpRHS)) in tryFoldSWTestBRCC()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 22317 SDValue CmpRHS = OpCmp.getOperand(1); in foldCSELOfCSEL() local 22319 if (CmpRHS.getOpcode() == AArch64ISD::CSEL) in foldCSELOfCSEL() 22320 std::swap(CmpLHS, CmpRHS); in foldCSELOfCSEL() 22342 if (CmpRHS == Y) in foldCSELOfCSEL() 22344 else if (CmpRHS != X) in foldCSELOfCSEL() 22789 SDNode *CmpRHS = SetCC.getOperand(1).getNode(); in performVSelectCombine() local 22799 SplatLHSVal.isOne() && ISD::isConstantSplatVectorAllOnes(CmpRHS) && in performVSelectCombine()
|