Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp1226 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) in visitAnd() local
1228 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitAnd()
1229 if (Op0C->getOpcode() == Op1C->getOpcode() && // same cast kind ? in visitAnd()
1232 Value *Op0COp = Op0C->getOperand(0), *Op1COp = Op1C->getOperand(0); in visitAnd()
1235 if (ShouldOptimizeCast(Op0C->getOpcode(), Op0COp, I.getType()) && in visitAnd()
1238 return CastInst::Create(Op0C->getOpcode(), NewOp, I.getType()); in visitAnd()
1246 return CastInst::Create(Op0C->getOpcode(), Res, I.getType()); in visitAnd()
1253 return CastInst::Create(Op0C->getOpcode(), Res, I.getType()); in visitAnd()
2009 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) { in visitOr() local
2011 if (Op1C && Op0C->getOpcode() == Op1C->getOpcode()) {// same cast kind ? in visitOr()
[all …]
DInstCombineShifts.cpp484 if (ConstantInt *Op0C = dyn_cast<ConstantInt>(Op0BO->getOperand(1))) { in FoldShiftByConstant() local
509 isValid = Op0C->getValue()[TypeBits-1] == highBitSet; in FoldShiftByConstant()
512 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1); in FoldShiftByConstant()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp1161 if (Constant *Op0C = dyn_cast<Constant>(Op0)) in ComputeMultiple() local
1163 if (Op0C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
1165 Op0C = ConstantExpr::getZExt(Op0C, MulC->getType()); in ComputeMultiple()
1166 if (Op0C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
1168 MulC = ConstantExpr::getZExt(MulC, Op0C->getType()); in ComputeMultiple()
1171 Multiple = ConstantExpr::getMul(MulC, Op0C); in ComputeMultiple()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp501 if (ConstantInt *Op0C = dyn_cast<ConstantInt>(Op0BO->getOperand(1))) { in FoldShiftByConstant() local
526 isValid = Op0C->getValue()[TypeBits-1] == highBitSet; in FoldShiftByConstant()
529 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1); in FoldShiftByConstant()
DInstCombineAndOrXor.cpp2549 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) { in visitXor() local
2550 if (CmpInst *CI = dyn_cast<CmpInst>(Op0C->getOperand(0))) { in visitXor()
2551 if (CI->hasOneUse() && Op0C->hasOneUse()) { in visitXor()
2552 Instruction::CastOps Opcode = Op0C->getOpcode(); in visitXor()
2555 Op0C->getDestTy()))) { in visitXor()
2557 return CastInst::Create(Opcode, CI, Op0C->getType()); in visitXor()
/external/llvm/lib/Analysis/
DValueTracking.cpp2267 if (Constant *Op0C = dyn_cast<Constant>(Op0)) in ComputeMultiple() local
2269 if (Op0C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
2271 Op0C = ConstantExpr::getZExt(Op0C, MulC->getType()); in ComputeMultiple()
2272 if (Op0C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
2274 MulC = ConstantExpr::getZExt(MulC, Op0C->getType()); in ComputeMultiple()
2277 Multiple = ConstantExpr::getMul(MulC, Op0C); in ComputeMultiple()