Home
last modified time | relevance | path

Searched refs:CRHS (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelperCompares.cpp102 if (auto CRHS = GIConstant::getConstant(RHS, MRI)) in matchCanonicalizeICmp() local
103 return constantFoldICmp(*Cmp, *CLHS, *CRHS, MatchInfo); in matchCanonicalizeICmp()
128 if (auto CRHS = GFConstant::getConstant(RHS, MRI)) in matchCanonicalizeFCmp() local
129 return constantFoldFCmp(*Cmp, *CLHS, *CRHS, MatchInfo); in matchCanonicalizeFCmp()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineCost.cpp2266 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); in visitSub() local
2267 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
2283 Constant *CRHS = getDirectOrSimplifiedValue<Constant>(RHS); in visitBinaryOperator() local
2287 SimpleV = simplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, in visitBinaryOperator()
2291 simplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, DL); in visitBinaryOperator()
H A DInstructionSimplify.cpp101 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
102 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
105 CRHS == LHS; in isSameCompare()
568 if (auto *CRHS = dyn_cast<Constant>(Op1)) { in foldOrCommuteConstant() local
578 return ConstantFoldFPInstOperands(Opcode, CLHS, CRHS, Q.DL, Q.CxtI); in foldOrCommuteConstant()
580 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
3748 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in simplifyICmpInst() local
3749 return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, Q.DL, Q.TLI); in simplifyICmpInst()
4034 if (auto *CRHS = dyn_cast<PtrToIntOperator>(RHS)) in simplifyICmpInst() local
4035 if (CLHS->getPointerOperandType() == CRHS->getPointerOperandType() && in simplifyICmpInst()
[all …]
H A DValueTracking.cpp4192 if (const auto *CRHS = dyn_cast<Constant>(U->getOperand(1))) in ComputeNumSignBitsImpl() local
4193 if (CRHS->isAllOnesValue()) { in ComputeNumSignBitsImpl()
4585 const APFloat *CRHS; in computeKnownFPClassFromCond() local
4587 if (match(Cond, m_FCmp(Pred, m_Value(LHS), m_APFloat(CRHS)))) { in computeKnownFPClassFromCond()
4589 Pred, *CxtI->getParent()->getParent(), LHS, *CRHS, LHS != V); in computeKnownFPClassFromCond()
9177 const APInt *CLHS, *CRHS; in isTruePredicate() local
9179 match(RHS, m_NSWAddLike(m_Specific(X), m_APInt(CRHS)))) in isTruePredicate()
9180 return CLHS->sle(*CRHS); in isTruePredicate()
9218 const APInt *CLHS, *CRHS; in isTruePredicate() local
9220 match(RHS, m_NUWAddLike(m_Specific(X), m_APInt(CRHS)))) in isTruePredicate()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp1734 ConstantFPSDNode *CRHS = dyn_cast<ConstantFPSDNode>(RHS); in combineFMinMaxLegacy() local
1745 if (LHS == NegTrue && CFalse && CRHS) { in combineFMinMaxLegacy()
1746 APFloat NegRHS = neg(CRHS->getValueAPF()); in combineFMinMaxLegacy()
4063 ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS); in performShlCombine() local
4068 if (CRHS) { in performShlCombine()
4069 RHSVal = CRHS->getZExtValue(); in performShlCombine()
4099 SDValue Shl = DAG.getNode(ISD::SHL, SL, XVT, X, SDValue(CRHS, 0)); in performShlCombine()
4124 if (CRHS) { in performShlCombine()
4163 ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS); in performSraCombine() local
4191 if (CRHS) { in performSraCombine()
[all …]
H A DSIISelLowering.cpp12149 const ConstantSDNode *CRHS) const { in splitBinaryBitConstantOp()
12150 uint64_t Val = CRHS->getZExtValue(); in splitBinaryBitConstantOp()
12157 (CRHS->hasOneUse() && !TII->isInlineConstant(CRHS->getAPIntValue()))) { in splitBinaryBitConstantOp()
12159 if (Subtarget->has64BitLiterals() && CRHS->hasOneUse() && in splitBinaryBitConstantOp()
12160 !CRHS->user_begin()->isDivergent()) in splitBinaryBitConstantOp()
12286 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS); in performAndCombine() local
12287 if (VT == MVT::i64 && CRHS) { in performAndCombine()
12289 splitBinaryBitConstantOp(DCI, SDLoc(N), ISD::AND, LHS, CRHS)) in performAndCombine()
12293 if (CRHS && VT == MVT::i32) { in performAndCombine()
12298 uint64_t Mask = CRHS->getZExtValue(); in performAndCombine()
[all …]
H A DSIISelLowering.h191 const ConstantSDNode *CRHS) const;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp268 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in InsertBinop() local
269 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop()
368 if (Constant *CRHS = dyn_cast<Constant>(Idx)) in expandAddToGEP() local
369 return Builder.CreatePtrAdd(CLHS, CRHS, "", NW); in expandAddToGEP()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp5043 if (ConstantSDNode *CRHS = in ComputeNumSignBits() local
5045 if (CRHS->isAllOnes()) { in ComputeNumSignBits()