Home
last modified time | relevance | path

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

/NextBSD/contrib/llvm/lib/Analysis/
HDInstructionSimplify.cpp96 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
97 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
100 CRHS == LHS; in isSameCompare()
532 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyAddInst() local
533 Constant *Ops[] = { CLHS, CRHS }; in SimplifyAddInst()
664 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifySubInst() local
665 Constant *Ops[] = { CLHS, CRHS }; in SimplifySubInst()
791 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyFAddInst() local
792 Constant *Ops[] = { CLHS, CRHS }; in SimplifyFAddInst()
833 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyFSubInst() local
[all …]
HDScalarEvolutionExpander.cpp160 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in InsertBinop() local
161 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
493 if (Constant *CRHS = dyn_cast<Constant>(Idx)) in expandAddToGEP() local
495 CLHS, CRHS); in expandAddToGEP()
HDValueTracking.cpp2029 if (const auto *CRHS = dyn_cast<Constant>(U->getOperand(1))) in ComputeNumSignBits() local
2030 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
/NextBSD/contrib/llvm/lib/Analysis/IPA/
HDInlineCost.cpp552 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in visitCmpInst() local
553 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
573 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); in visitCmpInst() local
574 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
619 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); in visitSub() local
620 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineAddSub.cpp1166 if (Constant *CRHS = dyn_cast<Constant>(RHS)) { in visitAdd() local
1169 return BinaryOperator::CreateSub(SubOne(CRHS), X); in visitAdd()
1172 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(RHS)) { in visitAdd() local
1178 CRHS->getValue() == (CRHS->getValue() & C2->getValue())) { in visitAdd()
1181 const APInt &AddRHSV = CRHS->getValue(); in visitAdd()
1191 Value *NewAdd = Builder->CreateAdd(X, CRHS, LHS->getName()); in visitAdd()
/NextBSD/contrib/llvm/lib/Target/AMDGPU/
HDSIISelLowering.cpp1662 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS.getOperand(1)); in performOrCombine() local
1663 if (!CLHS || !CRHS) in performOrCombine()
1669 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()
1763 const ConstantFPSDNode *CRHS = dyn_cast<ConstantFPSDNode>(RHS); in performSetCCCombine() local
1764 if (!CRHS) in performSetCCCombine()
1767 const APFloat &APF = CRHS->getValueAPF(); in performSetCCCombine()
/NextBSD/contrib/llvm/lib/CodeGen/SelectionDAG/
HDSelectionDAG.cpp2620 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1))) in ComputeNumSignBits() local
2621 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()