Home
last modified time | relevance | path

Searched refs:Op1C (Results 1 – 8 of 8) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp707 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(I.getOperand(1))) { in visitShl() local
708 unsigned ShAmt = Op1C->getZExtValue(); in visitShl()
713 APInt::getHighBitsSet(Op1C->getBitWidth(), ShAmt), in visitShl()
750 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in visitLShr() local
751 unsigned ShAmt = Op1C->getZExtValue(); in visitLShr()
771 MaskedValueIsZero(Op0, APInt::getLowBitsSet(Op1C->getBitWidth(), ShAmt), in visitLShr()
794 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in visitAShr() local
795 unsigned ShAmt = Op1C->getZExtValue(); in visitAShr()
809 if (Op1C->getZExtValue() == DestBits-SrcBits) in visitAShr()
816 MaskedValueIsZero(Op0,APInt::getLowBitsSet(Op1C->getBitWidth(),ShAmt), in visitAShr()
DInstCombineCasts.cpp513 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(ICI->getOperand(1))) { in transformZExtICmp() local
514 const APInt &Op1CV = Op1C->getValue(); in transformZExtICmp()
549 uint32_t BitWidth = Op1C->getType()->getBitWidth(); in transformZExtICmp()
901 if (Constant *Op1C = dyn_cast<Constant>(Op1)) { in transformSExtICmp() local
904 if ((Pred == ICmpInst::ICMP_SLT && Op1C->isNullValue()) || in transformSExtICmp()
905 (Pred == ICmpInst::ICMP_SGT && Op1C->isAllOnesValue())) { in transformSExtICmp()
919 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in transformSExtICmp() local
924 ICI->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){ in transformSExtICmp()
925 unsigned BitWidth = Op1C->getType()->getBitWidth(); in transformSExtICmp()
934 if (!Op1C->isZero() && Op1C->getValue() != KnownZeroMask) { in transformSExtICmp()
[all …]
DInstCombineMulDivRem.cpp296 Value *Op1C = Op1; in visitMul() local
301 Op1C = Op0; in visitMul()
304 Value *Neg = dyn_castNegVal(Op1C); in visitMul()
306 (BO->getOperand(1) == Op1C || BO->getOperand(1) == Neg) && in visitMul()
314 if (Op1BO == Op1C) in visitMul()
326 if (Op1BO == Op1C) in visitMul()
1221 if (Constant *Op1C = dyn_cast<Constant>(Op1)) { in visitFDiv() local
1228 Constant *C2 = Op1C; in visitFDiv()
1256 if (Instruction *T = CvtFDivConstToReciprocal(Op0, Op1C, AllowReciprocal)) { in visitFDiv()
DInstCombineAndOrXor.cpp1450 if (CastInst *Op1C = dyn_cast<CastInst>(Op1)) { in visitAnd() local
1452 if (Op0C->getOpcode() == Op1C->getOpcode() && // same cast kind ? in visitAnd()
1453 SrcTy == Op1C->getOperand(0)->getType() && in visitAnd()
1455 Value *Op0COp = Op0C->getOperand(0), *Op1COp = Op1C->getOperand(0); in visitAnd()
1459 ShouldOptimizeCast(Op1C->getOpcode(), Op1COp, I.getType())) { in visitAnd()
2461 CastInst *Op1C = dyn_cast<CastInst>(Op1); in visitOr() local
2462 if (Op1C && Op0C->getOpcode() == Op1C->getOpcode()) {// same cast kind ? in visitOr()
2464 if (SrcTy == Op1C->getOperand(0)->getType() && in visitOr()
2466 Value *Op0COp = Op0C->getOperand(0), *Op1COp = Op1C->getOperand(0); in visitOr()
2472 ShouldOptimizeCast(Op1C->getOpcode(), Op1COp, I.getType())) { in visitOr()
[all …]
DInstCombineCompares.cpp3213 if (Constant *Op1C = dyn_cast<Constant>(Op1)) { in visitICmpInst() local
3214 Op1 = ConstantExpr::getBitCast(Op1C, Op0->getType()); in visitICmpInst()
/external/llvm/lib/Analysis/
DValueTracking.cpp2165 if (Constant *Op1C = dyn_cast<Constant>(Op1)) in ComputeMultiple() local
2167 if (Op1C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
2169 Op1C = ConstantExpr::getZExt(Op1C, MulC->getType()); in ComputeMultiple()
2170 if (Op1C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
2172 MulC = ConstantExpr::getZExt(MulC, Op1C->getType()); in ComputeMultiple()
2175 Multiple = ConstantExpr::getMul(MulC, Op1C); in ComputeMultiple()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp1055 if (ConstantFP *Op1C = dyn_cast<ConstantFP>(Op1)) { in optimizePow() local
1057 if (Op1C->isExactlyValue(1.0)) in optimizePow()
1058 return Op1C; in optimizePow()
1060 if (Op1C->isExactlyValue(2.0) && in optimizePow()
1065 if (Op1C->isExactlyValue(10.0) && in optimizePow()
/external/llvm/lib/Target/X86/
DX86FastISel.cpp1169 if (const ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in X86FastEmitCompare() local
1170 if (unsigned CompareImmOpc = X86ChooseCmpImmediateOpcode(VT, Op1C)) { in X86FastEmitCompare()
1173 .addImm(Op1C->getSExtValue()); in X86FastEmitCompare()