Searched refs:CRHS (Results 1 – 5 of 5) sorted by relevance
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 230 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/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 526 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyAddInst() local 527 Constant *Ops[] = { CLHS, CRHS }; in SimplifyAddInst() 595 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifySubInst() local 596 Constant *Ops[] = { CLHS, CRHS }; in SimplifySubInst() 715 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyMulInst() local 716 Constant *Ops[] = { CLHS, CRHS }; in SimplifyMulInst() 1138 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyAndInst() local 1139 Constant *Ops[] = { CLHS, CRHS }; in SimplifyAndInst() 1227 if (Constant *CRHS = dyn_cast<Constant>(Op1)) { in SimplifyOrInst() local 1228 Constant *Ops[] = { CLHS, CRHS }; in SimplifyOrInst() [all …]
|
D | ScalarEvolutionExpander.cpp | 126 if (Constant *CRHS = dyn_cast<Constant>(RHS)) in InsertBinop() local 127 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop() 496 if (Constant *CRHS = dyn_cast<Constant>(Idx)) in expandAddToGEP() local 497 return ConstantExpr::getGetElementPtr(CLHS, &CRHS, 1); in expandAddToGEP()
|
D | ValueTracking.cpp | 971 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(U->getOperand(1))) in ComputeNumSignBits() local 972 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 2182 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1))) in ComputeNumSignBits() local 2183 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
|