Home
last modified time | relevance | path

Searched refs:CLHS (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInlineCost.cpp1922 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitCmpInst() local
1924 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
1956 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitSub() local
1958 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
1973 Constant *CLHS = dyn_cast<Constant>(LHS); in visitBinaryOperator() local
1974 if (!CLHS) in visitBinaryOperator()
1975 CLHS = SimplifiedValues.lookup(LHS); in visitBinaryOperator()
1982 SimpleV = simplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, in visitBinaryOperator()
1986 simplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, DL); in visitBinaryOperator()
H A DInstructionSimplify.cpp134 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
135 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
137 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare()
605 if (auto *CLHS = dyn_cast<Constant>(Op0)) { in foldOrCommuteConstant() local
618 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
3590 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in simplifyICmpInst() local
3851 if (auto *CLHS = dyn_cast<PtrToIntOperator>(LHS)) in simplifyICmpInst() local
3853 if (Q.DL.getTypeSizeInBits(CLHS->getPointerOperandType()) == in simplifyICmpInst()
3854 Q.DL.getTypeSizeInBits(CLHS->getType()) && in simplifyICmpInst()
3857 if (auto *C = computePointerICmp(Pred, CLHS->getPointerOperand(), in simplifyICmpInst()
[all …]
H A DValueTracking.cpp3246 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0))) in ComputeNumSignBitsImpl() local
3247 if (CLHS->isNullValue()) { in ComputeNumSignBitsImpl()
6601 const APInt *CLHS, *CRHS; in isTruePredicate() local
6602 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate()
6603 return CLHS->ule(*CRHS); in isTruePredicate()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp668 if (const ConstantFP *CLHS = dyn_cast<ConstantFP>(Num)) { in optimizeWithRcp() local
670 if (CLHS->isExactlyValue(1.0)) { in optimizeWithRcp()
689 if (CLHS->isExactlyValue(-1.0)) { in optimizeWithRcp()
H A DAMDGPULegalizerInfo.cpp3764 if (auto CLHS = getConstantFPVRegVal(LHS, MRI)) { in legalizeFastUnsafeFDIV() local
3766 if (CLHS->isExactlyValue(1.0)) { in legalizeFastUnsafeFDIV()
3776 if (CLHS->isExactlyValue(-1.0)) { in legalizeFastUnsafeFDIV()
H A DSIISelLowering.cpp8814 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in lowerFastUnsafeFDIV() local
8815 if (CLHS->isExactlyValue(1.0)) { in lowerFastUnsafeFDIV()
8835 if (CLHS->isExactlyValue(-1.0)) { in lowerFastUnsafeFDIV()
9772 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); in performOrCombine() local
9774 if (!CLHS || !CRHS) in performOrCombine()
9780 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp221 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local
223 if (Constant *Res = ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, DL)) in InsertBinop()
576 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local
579 CLHS, CRHS); in expandAddToGEP()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp4237 if (ConstantSDNode *CLHS = in ComputeNumSignBits() local
4239 if (CLHS->isZero()) { in ComputeNumSignBits()