Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp184 shouldChangeType(CI.getSrcTy(), CI.getType()))) { in commonCastTransforms()
203 shouldChangeType(CI.getSrcTy(), CI.getType())) in commonCastTransforms()
443 shouldChangeType(Trunc.getSrcTy(), Trunc.getType())) && in narrowFunnelShift()
550 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy)) in narrowBinOp()
690 if ((DestTy->isVectorTy() || shouldChangeType(SrcTy, DestTy)) && in visitTrunc()
711 if (shouldChangeType(SrcTy, NewDestTy) && in visitTrunc()
832 (isa<VectorType>(SrcTy) || shouldChangeType(SrcTy, DestTy))) { in visitTrunc()
1158 if (shouldChangeType(SrcTy, DestTy) && in visitZExt()
1450 if (shouldChangeType(SrcTy, DestTy) && canEvaluateSExtd(Src, DestTy)) { in visitSExt()
H A DInstCombineInternal.h247 bool shouldChangeType(unsigned FromBitWidth, unsigned ToBitWidth) const;
248 bool shouldChangeType(Type *From, Type *To) const;
H A DInstCombineShifts.cpp1415 (!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType()))) { in visitLShr()
1432 if ((!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType())) && in visitLShr()
1725 (Ty->isVectorTy() || shouldChangeType(Ty, X->getType()))) { in visitAShr()
H A DInstructionCombining.cpp239 bool InstCombinerImpl::shouldChangeType(unsigned FromWidth, in shouldChangeType() function in InstCombinerImpl
267 bool InstCombinerImpl::shouldChangeType(Type *From, Type *To) const { in shouldChangeType() function in InstCombinerImpl
275 return shouldChangeType(FromWidth, ToWidth); in shouldChangeType()
3847 shouldChangeType(Known.getBitWidth(), NewWidth)) { in visitSwitchInst()
H A DInstCombinePHI.cpp894 if (!shouldChangeType(PN.getType(), CastSrcTy)) in foldPHIArgOpIntoPHI()
H A DInstCombineCompares.cpp1421 if (shouldChangeType(Trunc->getType(), SrcTy)) { in foldICmpTruncConstant()
1455 if (!SrcTy->isVectorTy() && shouldChangeType(DstBits, SrcBits)) { in foldICmpTruncConstant()
2421 shouldChangeType(ShType->getScalarSizeInBits(), TypeBits - Amt)) { in foldICmpShlConstant()
H A DInstCombineCalls.cpp1150 if (!shouldChangeType(Ty->getScalarType()->getIntegerBitWidth(), NewBitWidth)) in matchSAddSubSat()
H A DInstCombineAndOrXor.cpp1930 if (!isa<VectorType>(Ty) && !shouldChangeType(Ty, X->getType())) in narrowMaskedBinOp()