Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp1490 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) { in visitAnd() local
1491 Value *Op0COp = Op0C->getOperand(0); in visitAnd()
1495 if (Op0C->getOpcode() == Op1C->getOpcode() && // same cast kind ? in visitAnd()
1501 if (ShouldOptimizeCast(Op0C->getOpcode(), Op0COp, I.getType()) && in visitAnd()
1504 return CastInst::Create(Op0C->getOpcode(), NewOp, I.getType()); in visitAnd()
1512 return CastInst::Create(Op0C->getOpcode(), Res, I.getType()); in visitAnd()
1519 return CastInst::Create(Op0C->getOpcode(), Res, I.getType()); in visitAnd()
1528 if (isa<BitCastInst>(Op0C) && SrcTy->isFloatingPointTy() && in visitAnd()
2546 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) { in visitOr() local
2548 if (Op1C && Op0C->getOpcode() == Op1C->getOpcode()) {// same cast kind ? in visitOr()
[all …]
DInstCombineShifts.cpp500 if (ConstantInt *Op0C = dyn_cast<ConstantInt>(Op0BO->getOperand(1))) { in FoldShiftByConstant() local
525 isValid = Op0C->getValue()[TypeBits-1] == highBitSet; in FoldShiftByConstant()
528 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1); in FoldShiftByConstant()
/external/llvm/lib/Analysis/
DValueTracking.cpp2458 if (Constant *Op0C = dyn_cast<Constant>(Op0)) in ComputeMultiple() local
2460 if (Op0C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
2462 Op0C = ConstantExpr::getZExt(Op0C, MulC->getType()); in ComputeMultiple()
2463 if (Op0C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
2465 MulC = ConstantExpr::getZExt(MulC, Op0C->getType()); in ComputeMultiple()
2468 Multiple = ConstantExpr::getMul(MulC, Op0C); in ComputeMultiple()