Home
last modified time | relevance | path

Searched refs:Op0C (Results 1 – 3 of 3) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp1206 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) in visitAnd() local
1208 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitAnd()
1209 if (Op0C->getOpcode() == Op1C->getOpcode() && // same cast kind ? in visitAnd()
1212 Value *Op0COp = Op0C->getOperand(0), *Op1COp = Op1C->getOperand(0); in visitAnd()
1215 if (ShouldOptimizeCast(Op0C->getOpcode(), Op0COp, I.getType()) && in visitAnd()
1218 return CastInst::Create(Op0C->getOpcode(), NewOp, I.getType()); in visitAnd()
1226 return CastInst::Create(Op0C->getOpcode(), Res, I.getType()); in visitAnd()
1233 return CastInst::Create(Op0C->getOpcode(), Res, I.getType()); in visitAnd()
1977 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) { in visitOr() local
1979 if (Op1C && Op0C->getOpcode() == Op1C->getOpcode()) {// same cast kind ? in visitOr()
[all …]
DInstCombineShifts.cpp485 if (ConstantInt *Op0C = dyn_cast<ConstantInt>(Op0BO->getOperand(1))) { in FoldShiftByConstant() local
510 isValid = Op0C->getValue()[TypeBits-1] == highBitSet; in FoldShiftByConstant()
513 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1); in FoldShiftByConstant()
/external/llvm/lib/Analysis/
DValueTracking.cpp1265 if (Constant *Op0C = dyn_cast<Constant>(Op0)) in ComputeMultiple() local
1267 if (Op0C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
1269 Op0C = ConstantExpr::getZExt(Op0C, MulC->getType()); in ComputeMultiple()
1270 if (Op0C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
1272 MulC = ConstantExpr::getZExt(MulC, Op0C->getType()); in ComputeMultiple()
1275 Multiple = ConstantExpr::getMul(MulC, Op0C); in ComputeMultiple()