Home
last modified time | relevance | path

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

/external/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp189 if (Constant *CRHS = dyn_cast<Constant>(RHS)) { in visitCmpInst() local
190 if (CLHS->getType() == CRHS->getType()) { in visitCmpInst()
191 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
DInstructionSimplify.cpp97 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
98 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
101 CRHS == LHS; in isSameCompare()
532 if (Constant *CRHS = dyn_cast<Constant>(Op1)) in SimplifyAddInst() local
533 return ConstantFoldBinaryOpOperands(Instruction::Add, CLHS, CRHS, Q.DL); in SimplifyAddInst()
666 if (Constant *CRHS = dyn_cast<Constant>(Op1)) in SimplifySubInst() local
667 return ConstantFoldBinaryOpOperands(Instruction::Sub, CLHS, CRHS, Q.DL); in SimplifySubInst()
790 if (Constant *CRHS = dyn_cast<Constant>(Op1)) in SimplifyFAddInst() local
791 return ConstantFoldBinaryOpOperands(Instruction::FAdd, CLHS, CRHS, Q.DL); in SimplifyFAddInst()
829 if (Constant *CRHS = dyn_cast<Constant>(Op1)) in SimplifyFSubInst() local
[all …]
DInlineCost.cpp675 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in visitCmpInst() local
677 ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
697 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); in visitCmpInst() local
698 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
743 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset); in visitSub() local
744 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
DScalarEvolutionExpander.cpp175 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in InsertBinop() local
176 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
502 if (Constant *CRHS = dyn_cast<Constant>(Idx)) in expandAddToGEP() local
504 CLHS, CRHS); in expandAddToGEP()
DValueTracking.cpp2079 if (const auto *CRHS = dyn_cast<Constant>(U->getOperand(1))) in ComputeNumSignBits() local
2080 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
4008 const APInt *CLHS, *CRHS; in isTruePredicate() local
4009 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate()
4010 return CLHS->ule(*CRHS); in isTruePredicate()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp230 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(RHS)) { in visitAdd() local
233 return BinaryOperator::CreateSub(SubOne(CRHS), X); in visitAdd()
238 CRHS->getValue() == (CRHS->getValue() & C2->getValue())) { in visitAdd()
241 const APInt &AddRHSV = CRHS->getValue(); in visitAdd()
251 Value *NewAdd = Builder->CreateAdd(X, CRHS, LHS->getName()); in visitAdd()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp546 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyAddInst() local
547 Constant *Ops[] = { CLHS, CRHS }; in SimplifyAddInst()
615 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifySubInst() local
616 Constant *Ops[] = { CLHS, CRHS }; in SimplifySubInst()
735 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyMulInst() local
736 Constant *Ops[] = { CLHS, CRHS }; in SimplifyMulInst()
1158 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyAndInst() local
1159 Constant *Ops[] = { CLHS, CRHS }; in SimplifyAndInst()
1247 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyOrInst() local
1248 Constant *Ops[] = { CLHS, CRHS }; in SimplifyOrInst()
[all …]
DScalarEvolutionExpander.cpp130 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in InsertBinop() local
131 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
500 if (Constant *CRHS = dyn_cast<Constant>(Idx)) in expandAddToGEP() local
501 return ConstantExpr::getGetElementPtr(CLHS, CRHS); in expandAddToGEP()
DValueTracking.cpp971 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(U->getOperand(1))) in ComputeNumSignBits() local
972 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1146 if (Constant *CRHS = dyn_cast<Constant>(RHS)) { in visitAdd() local
1149 return BinaryOperator::CreateSub(SubOne(CRHS), X); in visitAdd()
1152 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(RHS)) { in visitAdd() local
1158 CRHS->getValue() == (CRHS->getValue() & C2->getValue())) { in visitAdd()
1161 const APInt &AddRHSV = CRHS->getValue(); in visitAdd()
1171 Value *NewAdd = Builder->CreateAdd(X, CRHS, LHS->getName()); in visitAdd()
/external/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp2618 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS.getOperand(1)); in performOrCombine() local
2619 if (!CLHS || !CRHS) in performOrCombine()
2625 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()
2843 const ConstantFPSDNode *CRHS = dyn_cast<ConstantFPSDNode>(RHS); in performSetCCCombine() local
2844 if (!CRHS) in performSetCCCombine()
2847 const APFloat &APF = CRHS->getValueAPF(); in performSetCCCombine()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp2205 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1))) in ComputeNumSignBits() local
2206 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp2659 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1))) in ComputeNumSignBits() local
2660 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()