Searched refs:CmpRHS (Results 1 - 14 of 14) sorted by relevance

/freebsd-12-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),
156 CmpRHS(cmprhs), TrueBB(truebb), FalseBB(falsebb), ThisBB(me),
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp544 Value *CmpRHS = IC->getOperand(1); local
545 if (!CmpRHS->getType()->isIntOrIntVectorTy())
549 unsigned Bitwidth = CmpRHS->getType()->getScalarSizeInBits();
551 !match(CmpRHS,
554 !match(CmpRHS,
597 Value *CmpRHS = IC->getOperand(1); local
604 if (!match(CmpRHS, m_Zero()))
619 if ((IsEqualZero && !match(CmpRHS, m_AllOnes())) ||
620 (!IsEqualZero && !match(CmpRHS, m_Zero())))
854 Value *CmpRHS local
905 Value *CmpRHS = Cmp.getOperand(1); local
1166 Value *CmpLHS = Cmp.getOperand(0), *CmpRHS = Cmp.getOperand(1); local
1425 Value *CmpRHS = ICI->getOperand(1); local
2564 Value *CmpRHS = cast<CmpInst>(CondVal)->getOperand(1); local
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp4661 Value *CmpLHS, Value *CmpRHS,
4670 if (CmpRHS == FalseVal) {
4680 if (CmpRHS != TrueVal || !match(CmpRHS, m_APFloat(FC1)) || !FC1->isFinite())
4715 Value *CmpLHS, Value *CmpRHS,
4718 if (CmpRHS != TrueVal) {
4723 if (CmpRHS == TrueVal && match(CmpRHS, m_APInt(C1))) {
4751 Value *CmpLHS, Value *CmpRHS,
4774 std::swap(CmpLHS, CmpRHS);
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
5252 Value *CmpRHS = CmpI->getOperand(1); local
[all...]
H A DInstructionSimplify.cpp2303 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))))
3862 if (ICmpInst::isEquality(Pred) && match(CmpRHS, m_Zero())) {
3911 if (Value *V = simplifySelectWithFakeICmpEq(CmpLHS, CmpRHS, Pred,
3919 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS,
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DAlignmentFromAssumptions.cpp214 Value *CmpRHS = ICI->getOperand(1); local
216 const SCEV *CmpRHSSCEV = SE->getSCEV(CmpRHS);
218 std::swap(CmpLHS, CmpRHS);
H A DGVN.cpp1511 Value *CmpRHS = CmpI->getOperand(1); 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))) {
1526 uint32_t RVN = VN.lookupOrAdd(CmpRHS);
1528 std::swap(CmpLHS, CmpRHS);
1533 if (isa<Constant>(CmpLHS) && isa<Constant>(CmpRHS))
[all...]
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())),
609 CmpRHS, IC);
H A DJumpThreading.cpp772 Value *CmpRHS = Cmp->getOperand(1); local
777 PN = dyn_cast<PHINode>(CmpRHS);
791 RHS = CmpRHS->DoPHITranslation(BB, PredBB);
824 if (isa<Constant>(CmpRHS) && !CmpType->isVectorTy()) {
825 Constant *CmpConst = cast<Constant>(CmpRHS);
H A DIndVarSimplify.cpp1861 Value *CmpRHS;
1863 m_Value(CmpRHS))))
1869 auto CmpRHSRange = SE->getSignedRange(SE->getSCEV(CmpRHS));
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FastISel.cpp1649 const Value *CmpRHS = CI->getOperand(1); local
1656 const auto *CmpRHSC = dyn_cast<ConstantFP>(CmpRHS);
1658 CmpRHS = CmpLHS;
1689 std::swap(CmpLHS, CmpRHS);
1692 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT, CI->getDebugLoc()))
2059 const Value *CmpRHS = CI->getOperand(1); local
2061 std::swap(CmpLHS, CmpRHS);
2065 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT, CI->getDebugLoc()))
2161 const Value *CmpRHS = CI->getOperand(1); local
2168 const auto *CmpRHSC = dyn_cast<ConstantFP>(CmpRHS);
2311 const Value *CmpRHS = CI->getOperand(1); local
[all...]
H A DX86ISelLowering.cpp[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2232 Cases[0].CmpRHS == Cases[1].CmpRHS) ||
2233 (Cases[0].CmpRHS == Cases[1].CmpLHS &&
2234 Cases[0].CmpLHS == Cases[1].CmpRHS)) {
2240 if (Cases[0].CmpRHS == Cases[1].CmpRHS &&
2242 isa<Constant>(Cases[0].CmpRHS) &&
2243 cast<Constant>(Cases[0].CmpRHS)->isNullValue()) {
2312 ExportFromCurrentBlock(SL->SwitchCases[i].CmpRHS);
2365 if (CB.CmpRHS
[all...]
H A DTargetLowering.cpp3728 SDValue CmpRHS = DAG.getConstant(C1.lshr(ShiftBits), dl, ShValTy); local
3729 return DAG.getSetCC(dl, VT, Shift, CmpRHS, Cond);
3756 SDValue CmpRHS = DAG.getConstant(NewC, dl, ShValTy); local
3757 return DAG.getSetCC(dl, VT, Shift, CmpRHS, NewCond);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp591 Register CondRHS = getOrCreateVReg(*CB.CmpRHS);
598 const APInt& High = cast<ConstantInt>(CB.CmpRHS)->getValue();
602 Register CondRHS = getOrCreateVReg(*CB.CmpRHS);

Completed in 399 milliseconds