Searched refs:CmpLHS (Results 1 - 15 of 15) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp586 Instruction *CmpLHS = dyn_cast<Instruction>(CI->getOperand(0));
587 PHINode *CmpPHI = dyn_cast<PHINode>(CmpLHS);
591 while (!CmpPHI && CmpLHS && isa<BinaryOperator>(CmpLHS) &&
592 isa<Constant>(CmpLHS->getOperand(1))) {
594 if (!L->contains(CmpLHS))
596 InstChain.push_back(cast<BinaryOperator>(CmpLHS));
597 CmpLHS = dyn_cast<Instruction>(CmpLHS->getOperand(0));
598 if (CmpLHS)
[all...]
H A DValueTracking.cpp5116 Value *CmpLHS, Value *CmpRHS,
5145 m_CombineOr(m_OrdFMin(m_Specific(CmpLHS), m_APFloat(FC2)),
5146 m_UnordFMin(m_Specific(CmpLHS), m_APFloat(FC2)))) &&
5155 m_CombineOr(m_OrdFMax(m_Specific(CmpLHS), m_APFloat(FC2)),
5156 m_UnordFMax(m_Specific(CmpLHS), m_APFloat(FC2)))) &&
5170 Value *CmpLHS, Value *CmpRHS,
5181 if (match(FalseVal, m_SMin(m_Specific(CmpLHS), m_APInt(C2))) &&
5186 if (match(FalseVal, m_SMax(m_Specific(CmpLHS), m_APInt(C2))) &&
5191 if (match(FalseVal, m_UMin(m_Specific(CmpLHS), m_APInt(C2))) &&
5196 if (match(FalseVal, m_UMax(m_Specific(CmpLHS), m_APIn
5115 matchFastFloatClamp(CmpInst::Predicate Pred, Value *CmpLHS, Value *CmpRHS, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS) argument
5169 matchClamp(CmpInst::Predicate Pred, Value *CmpLHS, Value *CmpRHS, Value *TrueVal, Value *FalseVal) argument
5205 matchMinMaxOfMinMax(CmpInst::Predicate Pred, Value *CmpLHS, Value *CmpRHS, Value *TVal, Value *FVal, unsigned Depth) argument
5314 matchMinMax(CmpInst::Predicate Pred, Value *CmpLHS, Value *CmpRHS, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS, unsigned Depth) argument
5420 matchSelectPattern(CmpInst::Predicate Pred, FastMathFlags FMF, Value *CmpLHS, Value *CmpRHS, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS, unsigned Depth) argument
5733 Value *CmpLHS = CmpI->getOperand(0); local
[all...]
H A DInstructionSimplify.cpp2367 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1);
2368 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS)
2371 LHS == CmpRHS && RHS == CmpLHS)
3952 static Value *simplifySelectWithFakeICmpEq(Value *CmpLHS, Value *CmpRHS, argument
3957 if (!decomposeBitTestICmp(CmpLHS, CmpRHS, Pred, X, Mask))
3970 Value *CmpLHS, *CmpRHS; local
3971 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS))))
3983 if (match(CmpLHS, m_And(m_Value(X), m_APInt(Y))))
3996 if (match(TrueVal, isFsh) && FalseVal == X && CmpLHS == ShAmt)
4012 if (match(FalseVal, isRotate) && TrueVal == X && CmpLHS
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSwitchLoweringUtils.h122 const Value *CmpLHS, *CmpMHS, *CmpRHS; member in struct:llvm::SwitchCG::CaseBlock
144 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs),
155 : PredInfo({pred, nocmp}), CmpLHS(cmplhs), CmpMHS(cmpmiddle),
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DAlignmentFromAssumptions.cpp220 Value *CmpLHS = ICI->getOperand(0);
222 const SCEV *CmpLHSSCEV = SE->getSCEV(CmpLHS);
225 std::swap(CmpLHS, CmpRHS);
229 BinaryOperator *CmpBO = dyn_cast<BinaryOperator>(CmpLHS);
H A DGVN.cpp1536 Value *CmpLHS = CmpI->getOperand(0); local
1543 if (isa<Constant>(CmpLHS) && !isa<Constant>(CmpRHS))
1544 std::swap(CmpLHS, CmpRHS);
1545 if (!isa<Instruction>(CmpLHS) && isa<Instruction>(CmpRHS))
1546 std::swap(CmpLHS, CmpRHS);
1547 if ((isa<Argument>(CmpLHS) && isa<Argument>(CmpRHS)) ||
1548 (isa<Instruction>(CmpLHS) && isa<Instruction>(CmpRHS))) {
1551 uint32_t LVN = VN.lookupOrAdd(CmpLHS);
1554 std::swap(CmpLHS, CmpRHS);
1559 if (isa<Constant>(CmpLHS)
[all...]
H A DJumpThreading.cpp780 Value *CmpLHS = Cmp->getOperand(0); local
784 PHINode *PN = dyn_cast<PHINode>(CmpLHS);
794 if (PN == CmpLHS) {
798 LHS = CmpLHS->DoPHITranslation(BB, PredBB);
832 if (!isa<Instruction>(CmpLHS) ||
833 cast<Instruction>(CmpLHS)->getParent() != BB) {
838 LVI->getPredicateOnEdge(Pred, CmpLHS,
859 match(CmpLHS, m_Add(m_Value(AddLHS), m_ConstantInt(AddConst)))) {
867 AddLHS, P, BB, CxtI ? CxtI : cast<Instruction>(CmpLHS));
H A DGuardWidening.cpp601 const Value *CmpLHS = IC->getOperand(0), *CmpRHS = IC->getOperand(1);
603 std::swap(CmpLHS, CmpRHS);
608 CmpLHS, cast<ConstantInt>(ConstantInt::getNullValue(CmpRHS->getType())),
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp540 Value *CmpLHS = IC->getOperand(0); local
561 match(CmpLHS, m_Specific(X))) {
593 Value *CmpLHS = IC->getOperand(0);
605 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1))))
608 V = CmpLHS;
620 if (!match(CmpLHS, m_OneUse(m_Trunc(m_Value(V)))))
623 C1Log = CmpLHS->getType()->getScalarSizeInBits() - 1;
884 Value *CmpLHS = ICI->getOperand(0); local
904 if (!match(Count, m_Intrinsic<Intrinsic::cttz>(m_Specific(CmpLHS))) &&
905 !match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS))))
935 Value *CmpLHS = Cmp.getOperand(0); local
1202 Value *CmpLHS = Cmp.getOperand(0), *CmpRHS = Cmp.getOperand(1); local
1467 Value *CmpLHS = ICI->getOperand(0); local
2757 Value *CmpLHS = cast<CmpInst>(CondVal)->getOperand(0); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FastISel.cpp1640 const Value *CmpLHS = CI->getOperand(0); local
1650 CmpRHS = CmpLHS;
1681 std::swap(CmpLHS, CmpRHS);
1684 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT, CI->getDebugLoc()))
2050 const Value *CmpLHS = CI->getOperand(0); local
2053 std::swap(CmpLHS, CmpRHS);
2055 EVT CmpVT = TLI.getValueType(DL, CmpLHS->getType());
2057 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT, CI->getDebugLoc()))
2152 const Value *CmpLHS = CI->getOperand(0); local
2162 CmpRHS = CmpLHS;
2302 const Value *CmpLHS = CI->getOperand(0); local
[all...]
H A DX86ISelLowering.cpp[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp559 Register CondLHS = getOrCreateVReg(*CB.CmpLHS);
586 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue();
590 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp3463 SDValue CmpLHS = Cond.getOperand(0); local
3469 RHS.getOperand(0) == CmpLHS && isNegativeOne(LHS)) {
3472 return getFFBX_U32(DAG, CmpLHS, SL, Opc);
3479 LHS.getOperand(0) == CmpLHS && isNegativeOne(RHS)) {
3483 return getFFBX_U32(DAG, CmpLHS, SL, Opc);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2232 if ((Cases[0].CmpLHS == Cases[1].CmpLHS &&
2234 (Cases[0].CmpRHS == Cases[1].CmpLHS &&
2235 Cases[0].CmpLHS == Cases[1].CmpRHS)) {
2317 ExportFromCurrentBlock(SL->SwitchCases[i].CmpLHS);
2350 SDValue CondLHS = getValue(CB.CmpLHS);
2365 EVT MemVT = TLI.getMemValueType(DAG.getDataLayout(), CB.CmpLHS->getType());
2393 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue();
2399 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) {
H A DDAGCombiner.cpp20969 SDValue CmpLHS; local
20974 CmpLHS = TheSelect->getOperand(0);
20981 CmpLHS = Cmp.getOperand(0);
20986 Sqrt.getOperand(0) == CmpLHS && (CC == ISD::SETOLT ||

Completed in 627 milliseconds