Home
last modified time | relevance | path

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

/external/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/llvm/lib/Analysis/
DInstructionSimplify.cpp526 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 …]
DScalarEvolutionExpander.cpp126 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()
DValueTracking.cpp971 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(U->getOperand(1))) in ComputeNumSignBits() local
972 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp2182 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1))) in ComputeNumSignBits() local
2183 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()