Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp193 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in visitCmpInst() local
195 if (CLHS->getType() == CRHS->getType()) { in visitCmpInst()
196 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
H A DInlineCost.cpp1000 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitCmpInst() local
1002 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
1046 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitSub() local
1048 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
1063 Constant *CLHS = dyn_cast<Constant>(LHS); in visitBinaryOperator() local
1064 if (!CLHS) in visitBinaryOperator()
1065 CLHS = SimplifiedValues.lookup(LHS); in visitBinaryOperator()
1072 SimpleV = SimplifyFPBinOp(I.getOpcode(), CLHS ? CLHS : LHS, in visitBinaryOperator()
1076 SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, DL); in visitBinaryOperator()
H A DInstructionSimplify.cpp129 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
130 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
132 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare()
559 if (auto *CLHS = dyn_cast<Constant>(Op0)) { in foldOrCommuteConstant() local
561 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
3314 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in SimplifyICmpInst() local
3543 if (auto *CLHS = dyn_cast<PtrToIntOperator>(LHS)) in SimplifyICmpInst() local
3545 if (Q.DL.getTypeSizeInBits(CLHS->getPointerOperandType()) == in SimplifyICmpInst()
3546 Q.DL.getTypeSizeInBits(CLHS->getType()) && in SimplifyICmpInst()
3550 Q.IIQ, CLHS->getPointerOperand(), in SimplifyICmpInst()
[all …]
H A DScalarEvolutionExpander.cpp174 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local
176 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
514 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local
517 CLHS, CRHS); in expandAddToGEP()
H A DValueTracking.cpp2470 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0))) in ComputeNumSignBitsImpl() local
2471 if (CLHS->isNullValue()) { in ComputeNumSignBitsImpl()
5205 const APInt *CLHS, *CRHS; in isTruePredicate() local
5206 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate()
5207 return CLHS->ule(*CRHS); in isTruePredicate()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2881 if (ConstantSDNode *CLHS = isConstOrConstSplat(Op.getOperand(0))) { in computeKnownBits() local
2885 if (CLHS->getAPIntValue().isNonNegative()) { in computeKnownBits()
2886 unsigned NLZ = (CLHS->getAPIntValue()+1).countLeadingZeros(); in computeKnownBits()
2896 unsigned NLZ2 = CLHS->getAPIntValue().countLeadingZeros(); in computeKnownBits()
3578 if (ConstantSDNode *CLHS = isConstOrConstSplat(Op.getOperand(0))) in ComputeNumSignBits() local
3579 if (CLHS->isNullValue()) { in ComputeNumSignBits()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DSIISelLowering.cpp6606 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in lowerFastUnsafeFDIV() local
6608 if (CLHS->isExactlyValue(1.0)) { in lowerFastUnsafeFDIV()
6628 if (CLHS->isExactlyValue(-1.0)) { in lowerFastUnsafeFDIV()
7465 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); in performOrCombine() local
7467 if (!CLHS || !CRHS) in performOrCombine()
7473 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()