Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineCost.cpp1832 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitCmpInst() local
1834 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
1866 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitSub() local
1868 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
1883 Constant *CLHS = dyn_cast<Constant>(LHS); in visitBinaryOperator() local
1884 if (!CLHS) in visitBinaryOperator()
1885 CLHS = SimplifiedValues.lookup(LHS); in visitBinaryOperator()
1892 SimpleV = SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, in visitBinaryOperator()
1896 SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, DL); in visitBinaryOperator()
H A DInstructionSimplify.cpp139 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
140 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
142 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare()
605 if (auto *CLHS = dyn_cast<Constant>(Op0)) { in foldOrCommuteConstant() local
607 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
3375 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in SimplifyICmpInst() local
3633 if (auto *CLHS = dyn_cast<PtrToIntOperator>(LHS)) in SimplifyICmpInst() local
3635 if (Q.DL.getTypeSizeInBits(CLHS->getPointerOperandType()) == in SimplifyICmpInst()
3636 Q.DL.getTypeSizeInBits(CLHS->getType()) && in SimplifyICmpInst()
3639 if (auto *C = computePointerICmp(Pred, CLHS->getPointerOperand(), in SimplifyICmpInst()
[all …]
H A DValueTracking.cpp3072 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0))) in ComputeNumSignBitsImpl() local
3073 if (CLHS->isNullValue()) { in ComputeNumSignBitsImpl()
6421 const APInt *CLHS, *CRHS; in isTruePredicate() local
6422 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate()
6423 return CLHS->ule(*CRHS); in isTruePredicate()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp648 if (const ConstantFP *CLHS = dyn_cast<ConstantFP>(Num)) { in optimizeWithRcp() local
650 if (CLHS->isExactlyValue(1.0)) { in optimizeWithRcp()
669 if (CLHS->isExactlyValue(-1.0)) { in optimizeWithRcp()
H A DAMDGPULegalizerInfo.cpp3198 if (auto CLHS = getConstantFPVRegVal(LHS, MRI)) { in legalizeFastUnsafeFDIV() local
3200 if (CLHS->isExactlyValue(1.0)) { in legalizeFastUnsafeFDIV()
3210 if (CLHS->isExactlyValue(-1.0)) { in legalizeFastUnsafeFDIV()
H A DSIISelLowering.cpp8281 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in lowerFastUnsafeFDIV() local
8282 if (CLHS->isExactlyValue(1.0)) { in lowerFastUnsafeFDIV()
8302 if (CLHS->isExactlyValue(-1.0)) { in lowerFastUnsafeFDIV()
9257 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); in performOrCombine() local
9259 if (!CLHS || !CRHS) in performOrCombine()
9265 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp223 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local
225 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
575 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local
578 CLHS, CRHS); in expandAddToGEP()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp3972 if (ConstantSDNode *CLHS = in ComputeNumSignBits() local
3974 if (CLHS->isNullValue()) { in ComputeNumSignBits()