Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp182 Value *Op1C = Op1; in visitMul() local
187 Op1C = Op0; in visitMul()
190 Value *Neg = dyn_castNegVal(Op1C); in visitMul()
192 (BO->getOperand(1) == Op1C || BO->getOperand(1) == Neg) && in visitMul()
200 if (Op1BO == Op1C) in visitMul()
212 if (Op1BO == Op1C) in visitMul()
260 if (Constant *Op1C = dyn_cast<Constant>(Op1)) { in visitFMul() local
261 if (ConstantFP *Op1F = dyn_cast<ConstantFP>(Op1C)) { in visitFMul()
266 } else if (Op1C->getType()->isVectorTy()) { in visitFMul()
267 if (ConstantVector *Op1V = dyn_cast<ConstantVector>(Op1C)) { in visitFMul()
[all …]
DInstCombineShifts.cpp629 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(I.getOperand(1))) { in visitShl() local
630 unsigned ShAmt = Op1C->getZExtValue(); in visitShl()
635 APInt::getHighBitsSet(Op1C->getBitWidth(), ShAmt))) { in visitShl()
668 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in visitLShr() local
669 unsigned ShAmt = Op1C->getZExtValue(); in visitLShr()
689 MaskedValueIsZero(Op0,APInt::getLowBitsSet(Op1C->getBitWidth(),ShAmt))){ in visitLShr()
708 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in visitAShr() local
709 unsigned ShAmt = Op1C->getZExtValue(); in visitAShr()
728 if (Op1C->getZExtValue() == DestBits-SrcBits) in visitAShr()
735 MaskedValueIsZero(Op0,APInt::getLowBitsSet(Op1C->getBitWidth(),ShAmt))){ in visitAShr()
DInstCombineAndOrXor.cpp1226 if (CastInst *Op1C = dyn_cast<CastInst>(Op1)) { in visitAnd() local
1228 if (Op0C->getOpcode() == Op1C->getOpcode() && // same cast kind ? in visitAnd()
1229 SrcTy == Op1C->getOperand(0)->getType() && in visitAnd()
1231 Value *Op0COp = Op0C->getOperand(0), *Op1COp = Op1C->getOperand(0); in visitAnd()
1235 ShouldOptimizeCast(Op1C->getOpcode(), Op1COp, I.getType())) { in visitAnd()
2009 CastInst *Op1C = dyn_cast<CastInst>(Op1); in visitOr() local
2010 if (Op1C && Op0C->getOpcode() == Op1C->getOpcode()) {// same cast kind ? in visitOr()
2012 if (SrcTy == Op1C->getOperand(0)->getType() && in visitOr()
2014 Value *Op0COp = Op0C->getOperand(0), *Op1COp = Op1C->getOperand(0); in visitOr()
2020 ShouldOptimizeCast(Op1C->getOpcode(), Op1COp, I.getType())) { in visitOr()
[all …]
DInstCombineCasts.cpp507 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(ICI->getOperand(1))) { in transformZExtICmp() local
508 const APInt &Op1CV = Op1C->getValue(); in transformZExtICmp()
545 uint32_t BitWidth = Op1C->getType()->getBitWidth(); in transformZExtICmp()
893 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in transformSExtICmp() local
896 if ((Pred == ICmpInst::ICMP_SLT && Op1C->isZero()) || in transformSExtICmp()
897 (Pred == ICmpInst::ICMP_SGT && Op1C->isAllOnesValue())) { in transformSExtICmp()
914 ICI->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){ in transformSExtICmp()
915 unsigned BitWidth = Op1C->getType()->getBitWidth(); in transformSExtICmp()
925 if (!Op1C->isZero() && Op1C->getValue() != KnownZeroMask) { in transformSExtICmp()
932 if (!Op1C->isZero() == (Pred == ICmpInst::ICMP_NE)) { in transformSExtICmp()
DInstCombineCompares.cpp2243 if (Constant *Op1C = dyn_cast<Constant>(Op1)) { in visitICmpInst() local
2244 Op1 = ConstantExpr::getBitCast(Op1C, Op0->getType()); in visitICmpInst()
/external/llvm/lib/Analysis/
DValueTracking.cpp1137 if (Constant *Op1C = dyn_cast<Constant>(Op1)) in ComputeMultiple() local
1139 if (Op1C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
1141 Op1C = ConstantExpr::getZExt(Op1C, MulC->getType()); in ComputeMultiple()
1142 if (Op1C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
1144 MulC = ConstantExpr::getZExt(MulC, Op1C->getType()); in ComputeMultiple()
1147 Multiple = ConstantExpr::getMul(MulC, Op1C); in ComputeMultiple()
/external/llvm/lib/Transforms/Scalar/
DSimplifyLibCalls.cpp852 if (ConstantFP *Op1C = dyn_cast<ConstantFP>(Op1)) { in CallOptimizer() local
853 if (Op1C->isExactlyValue(1.0)) // pow(1.0, x) -> 1.0 in CallOptimizer()
854 return Op1C; in CallOptimizer()
855 if (Op1C->isExactlyValue(2.0)) // pow(2.0, x) -> exp2(x) in CallOptimizer()
/external/llvm/lib/Target/X86/
DX86FastISel.cpp842 if (const ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in X86FastEmitCompare() local
843 if (unsigned CompareImmOpc = X86ChooseCmpImmediateOpcode(VT, Op1C)) { in X86FastEmitCompare()
846 .addImm(Op1C->getSExtValue()); in X86FastEmitCompare()