Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp193 if (Constant *CRHS = dyn_cast<Constant>(RHS)) { in visitCmpInst() local
194 if (CLHS->getType() == CRHS->getType()) { in visitCmpInst()
195 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
DInlineCost.cpp1279 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); in visitCmpInst() local
1280 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
1313 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); in visitSub() local
1314 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
1332 Constant *CRHS = dyn_cast<Constant>(RHS); in visitBinaryOperator() local
1333 if (!CRHS) in visitBinaryOperator()
1334 CRHS = SimplifiedValues.lookup(RHS); in visitBinaryOperator()
1338 SimpleV = SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, in visitBinaryOperator()
1342 SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, DL); in visitBinaryOperator()
DInstructionSimplify.cpp133 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
134 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
137 CRHS == LHS; in isSameCompare()
605 if (auto *CRHS = dyn_cast<Constant>(Op1)) in foldOrCommuteConstant() local
606 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
3229 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in SimplifyICmpInst() local
3230 return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, Q.DL, Q.TLI); in SimplifyICmpInst()
3462 if (auto *CRHS = dyn_cast<PtrToIntOperator>(RHS)) in SimplifyICmpInst() local
3465 Q.DL.getTypeSizeInBits(CRHS->getPointerOperandType()) == in SimplifyICmpInst()
3466 Q.DL.getTypeSizeInBits(CRHS->getType())) in SimplifyICmpInst()
[all …]
DScalarEvolutionExpander.cpp174 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in InsertBinop() local
175 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
519 if (Constant *CRHS = dyn_cast<Constant>(Idx)) in expandAddToGEP() local
521 CLHS, CRHS); in expandAddToGEP()
DValueTracking.cpp2612 if (const auto *CRHS = dyn_cast<Constant>(U->getOperand(1))) in ComputeNumSignBitsImpl() local
2613 if (CRHS->isAllOnesValue()) { in ComputeNumSignBitsImpl()
5360 const APInt *CLHS, *CRHS; in isTruePredicate() local
5361 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate()
5362 return CLHS->ule(*CRHS); in isTruePredicate()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp8156 const ConstantSDNode *CRHS) const { in splitBinaryBitConstantOp()
8157 uint64_t Val = CRHS->getZExtValue(); in splitBinaryBitConstantOp()
8164 (CRHS->hasOneUse() && !TII->isInlineConstant(CRHS->getAPIntValue()))) { in splitBinaryBitConstantOp()
8267 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS); in performAndCombine() local
8268 if (VT == MVT::i64 && CRHS) { in performAndCombine()
8270 = splitBinaryBitConstantOp(DCI, SDLoc(N), ISD::AND, LHS, CRHS)) in performAndCombine()
8274 if (CRHS && VT == MVT::i32) { in performAndCombine()
8279 uint64_t Mask = CRHS->getZExtValue(); in performAndCombine()
8285 unsigned NB = CRHS->getAPIntValue().countTrailingZeros(); in performAndCombine()
8297 DAG.getConstant(NB, SDLoc(CRHS), MVT::i32)); in performAndCombine()
[all …]
DSIISelLowering.h148 const ConstantSDNode *CRHS) const;
DAMDGPUISelLowering.cpp3535 ConstantFPSDNode *CRHS = dyn_cast<ConstantFPSDNode>(RHS); in foldFreeOpFromSelect() local
3536 if ((LHS.getOpcode() == ISD::FNEG || LHS.getOpcode() == ISD::FABS) && CRHS) { in foldFreeOpFromSelect()
3557 else if (CRHS->isNegative()) in foldFreeOpFromSelect()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1320 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(RHS)) { in visitAdd() local
1326 CRHS->getValue() == (CRHS->getValue() & C2->getValue())) { in visitAdd()
1329 const APInt &AddRHSV = CRHS->getValue(); in visitAdd()
1339 Value *NewAdd = Builder.CreateAdd(X, CRHS, LHS->getName()); in visitAdd()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp3780 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1))) in ComputeNumSignBits() local
3781 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()