/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | BranchProbabilityInfo.cpp | 528 Instruction *CmpLHS = dyn_cast<Instruction>(CI->getOperand(0)); 529 PHINode *CmpPHI = dyn_cast<PHINode>(CmpLHS); 533 while (!CmpPHI && CmpLHS && isa<BinaryOperator>(CmpLHS) && 534 isa<Constant>(CmpLHS->getOperand(1))) { 536 if (!L->contains(CmpLHS)) 538 InstChain.push_back(cast<BinaryOperator>(CmpLHS)); 539 CmpLHS = dyn_cast<Instruction>(CmpLHS->getOperand(0)); 540 if (CmpLHS) [all...] |
H A D | ValueTracking.cpp | 4661 Value *CmpLHS, Value *CmpRHS, 4690 m_CombineOr(m_OrdFMin(m_Specific(CmpLHS), m_APFloat(FC2)), 4691 m_UnordFMin(m_Specific(CmpLHS), m_APFloat(FC2)))) && 4700 m_CombineOr(m_OrdFMax(m_Specific(CmpLHS), m_APFloat(FC2)), 4701 m_UnordFMax(m_Specific(CmpLHS), m_APFloat(FC2)))) && 4715 Value *CmpLHS, Value *CmpRHS, 4726 if (match(FalseVal, m_SMin(m_Specific(CmpLHS), m_APInt(C2))) && 4731 if (match(FalseVal, m_SMax(m_Specific(CmpLHS), m_APInt(C2))) && 4736 if (match(FalseVal, m_UMin(m_Specific(CmpLHS), m_APInt(C2))) && 4741 if (match(FalseVal, m_UMax(m_Specific(CmpLHS), m_APIn 4660 matchFastFloatClamp(CmpInst::Predicate Pred, Value *CmpLHS, Value *CmpRHS, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS) argument 4714 matchClamp(CmpInst::Predicate Pred, Value *CmpLHS, Value *CmpRHS, Value *TrueVal, Value *FalseVal) argument 4750 matchMinMaxOfMinMax(CmpInst::Predicate Pred, Value *CmpLHS, Value *CmpRHS, Value *TVal, Value *FVal, unsigned Depth) argument 4844 matchMinMax(CmpInst::Predicate Pred, Value *CmpLHS, Value *CmpRHS, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS, unsigned Depth) argument 4938 matchSelectPattern(CmpInst::Predicate Pred, FastMathFlags FMF, Value *CmpLHS, Value *CmpRHS, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS, unsigned Depth) argument 5251 Value *CmpLHS = CmpI->getOperand(0); local [all...] |
H A D | InstructionSimplify.cpp | 2303 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1); 2304 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS) 2307 LHS == CmpRHS && RHS == CmpLHS) 3840 static Value *simplifySelectWithFakeICmpEq(Value *CmpLHS, Value *CmpRHS, argument 3845 if (!decomposeBitTestICmp(CmpLHS, CmpRHS, Pred, X, Mask)) 3858 Value *CmpLHS, *CmpRHS; local 3859 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) 3865 if (match(CmpLHS, m_And(m_Value(X), m_APInt(Y)))) 3878 if (match(TrueVal, isFsh) && FalseVal == X && CmpLHS == ShAmt && 3883 if (match(FalseVal, isFsh) && TrueVal == X && CmpLHS [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSelect.cpp | 543 Value *CmpLHS = IC->getOperand(0); local 564 match(CmpLHS, m_Specific(X))) { 596 Value *CmpLHS = IC->getOperand(0); 608 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1)))) 611 V = CmpLHS; 623 if (!match(CmpLHS, m_OneUse(m_Trunc(m_Value(V))))) 626 C1Log = CmpLHS->getType()->getScalarSizeInBits() - 1; 853 Value *CmpLHS = ICI->getOperand(0); local 873 if (!match(Count, m_Intrinsic<Intrinsic::cttz>(m_Specific(CmpLHS))) && 874 !match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS)))) 904 Value *CmpLHS = Cmp.getOperand(0); local 1166 Value *CmpLHS = Cmp.getOperand(0), *CmpRHS = Cmp.getOperand(1); local 1424 Value *CmpLHS = ICI->getOperand(0); local 2563 Value *CmpLHS = cast<CmpInst>(CondVal)->getOperand(0); local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | SwitchLoweringUtils.h | 122 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-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | AlignmentFromAssumptions.cpp | 213 Value *CmpLHS = ICI->getOperand(0); 215 const SCEV *CmpLHSSCEV = SE->getSCEV(CmpLHS); 218 std::swap(CmpLHS, CmpRHS); 222 BinaryOperator *CmpBO = dyn_cast<BinaryOperator>(CmpLHS);
|
H A D | GVN.cpp | 1510 Value *CmpLHS = CmpI->getOperand(0); local 1517 if (isa<Constant>(CmpLHS) && !isa<Constant>(CmpRHS)) 1518 std::swap(CmpLHS, CmpRHS); 1519 if (!isa<Instruction>(CmpLHS) && isa<Instruction>(CmpRHS)) 1520 std::swap(CmpLHS, CmpRHS); 1521 if ((isa<Argument>(CmpLHS) && isa<Argument>(CmpRHS)) || 1522 (isa<Instruction>(CmpLHS) && isa<Instruction>(CmpRHS))) { 1525 uint32_t LVN = VN.lookupOrAdd(CmpLHS); 1528 std::swap(CmpLHS, CmpRHS); 1533 if (isa<Constant>(CmpLHS) [all...] |
H A D | JumpThreading.cpp | 771 Value *CmpLHS = Cmp->getOperand(0); local 775 PHINode *PN = dyn_cast<PHINode>(CmpLHS); 789 if (PN == CmpLHS) { 793 LHS = CmpLHS->DoPHITranslation(BB, PredBB); 827 if (!isa<Instruction>(CmpLHS) || 828 cast<Instruction>(CmpLHS)->getParent() != BB) { 837 LVI->getPredicateOnEdge(Pred, CmpLHS, 858 match(CmpLHS, m_Add(m_Value(AddLHS), m_ConstantInt(AddConst)))) { 870 AddLHS, P, BB, CxtI ? CxtI : cast<Instruction>(CmpLHS));
|
H A D | GuardWidening.cpp | 601 const Value *CmpLHS = IC->getOperand(0), *CmpRHS = IC->getOperand(1); 603 std::swap(CmpLHS, CmpRHS); 608 CmpLHS, cast<ConstantInt>(ConstantInt::getNullValue(CmpRHS->getType())),
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FastISel.cpp | 1648 const Value *CmpLHS = CI->getOperand(0); local 1658 CmpRHS = CmpLHS; 1689 std::swap(CmpLHS, CmpRHS); 1692 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT, CI->getDebugLoc())) 2058 const Value *CmpLHS = CI->getOperand(0); local 2061 std::swap(CmpLHS, CmpRHS); 2063 EVT CmpVT = TLI.getValueType(DL, CmpLHS->getType()); 2065 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT, CI->getDebugLoc())) 2160 const Value *CmpLHS = CI->getOperand(0); local 2170 CmpRHS = CmpLHS; 2310 const Value *CmpLHS = CI->getOperand(0); local [all...] |
H A D | X86ISelLowering.cpp | [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | IRTranslator.cpp | 570 Register CondLHS = getOrCreateVReg(*CB.CmpLHS); 597 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue(); 601 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) {
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUISelLowering.cpp | 3466 SDValue CmpLHS = Cond.getOperand(0); local 3475 RHS.getOperand(0) == CmpLHS && 3477 return getFFBX_U32(DAG, CmpLHS, SL, Opc); 3484 LHS.getOperand(0) == CmpLHS && 3486 return getFFBX_U32(DAG, CmpLHS, SL, Opc);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGBuilder.cpp | 2231 if ((Cases[0].CmpLHS == Cases[1].CmpLHS && 2233 (Cases[0].CmpRHS == Cases[1].CmpLHS && 2234 Cases[0].CmpLHS == Cases[1].CmpRHS)) { 2311 ExportFromCurrentBlock(SL->SwitchCases[i].CmpLHS); 2344 SDValue CondLHS = getValue(CB.CmpLHS); 2359 EVT MemVT = TLI.getMemValueType(DAG.getDataLayout(), CB.CmpLHS->getType()); 2387 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue(); 2393 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) {
|
H A D | DAGCombiner.cpp | 20054 SDValue CmpLHS; local 20059 CmpLHS = TheSelect->getOperand(0); 20066 CmpLHS = Cmp.getOperand(0); 20071 Sqrt.getOperand(0) == CmpLHS && (CC == ISD::SETOLT ||
|